Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Issue 8176001: Warn user in case extension delays network traffic too much. (Closed)

Created:
9 years, 2 months ago by battre
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, arv (Not doing code reviews), mihaip+watch_chromium.org, Patrick Nepper
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Warn user in case extension delays network traffic too much. This CL adds a badge to the wrench menu and warning messages to chrome://extensions in case an extension delays network traffic too much and thereby causes a bad user experience. BUG=82618 TEST=Install an extension using the webRequest API in a debug build. In debug build the extension should delay the network traffic enough to cause warning messages. You can use https://adblockplus.org/development-builds/experimental-adblock-plus-for-chrome-builds-available-with-better-blocking for example. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104929

Patch Set 1 #

Patch Set 2 : testing and cleanups #

Patch Set 3 : Pacify MSVC #

Patch Set 4 : Pacify clang #

Patch Set 5 : Addressed Glen's comments #

Total comments: 14

Patch Set 6 : Addressed Matt's comments #

Patch Set 7 : Cleanups added missing files #

Patch Set 8 : Cleanup #

Total comments: 31

Patch Set 9 : Addressed Matt's and Finnur's comments #

Patch Set 10 : addressed Finnur's comments #

Patch Set 11 : Merged with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+846 lines, -20 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_global_error_badge.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_global_error_badge.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +75 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_ui_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/extensions/extension_warning_set.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_warning_set.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +167 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_warning_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +142 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_webrequest_api.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_webrequest_time_tracker.h View 1 2 3 4 5 6 5 chunks +33 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_webrequest_time_tracker.cc View 1 2 3 4 5 6 7 8 6 chunks +105 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_webrequest_time_tracker_unittest.cc View 1 2 3 4 5 6 chunks +71 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/extension_list.js View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/resources/options/extension_settings.css View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/extension_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +30 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
battre
Please review this CL. Its intention is to warn the user if one or more ...
9 years, 2 months ago (2011-10-06 16:16:29 UTC) #1
sail
LGTM! ExtensionGlobalError looks good.
9 years, 2 months ago (2011-10-06 16:48:43 UTC) #2
glen
Inlining for Brian's sake, and I defer to his final judgement. I assume that if ...
9 years, 2 months ago (2011-10-06 17:04:30 UTC) #3
battre
Hi. On Thu, Oct 6, 2011 at 7:04 PM, Glen Murphy <glen@google.com> wrote: > Inlining ...
9 years, 2 months ago (2011-10-06 20:06:19 UTC) #4
Matt Perry
http://codereview.chromium.org/8176001/diff/5004/chrome/browser/extensions/extension_service.h File chrome/browser/extensions/extension_service.h (right): http://codereview.chromium.org/8176001/diff/5004/chrome/browser/extensions/extension_service.h#newcode76 chrome/browser/extensions/extension_service.h:76: class ExtensionServiceWarning { The warning stuff isn't really related ...
9 years, 2 months ago (2011-10-06 22:55:54 UTC) #5
battre
http://codereview.chromium.org/8176001/diff/5004/chrome/browser/extensions/extension_service.h File chrome/browser/extensions/extension_service.h (right): http://codereview.chromium.org/8176001/diff/5004/chrome/browser/extensions/extension_service.h#newcode76 chrome/browser/extensions/extension_service.h:76: class ExtensionServiceWarning { On 2011/10/06 22:55:54, Matt Perry wrote: ...
9 years, 2 months ago (2011-10-07 14:09:24 UTC) #6
Matt Perry
almost there http://codereview.chromium.org/8176001/diff/15003/chrome/browser/extensions/extension_warning_set.h File chrome/browser/extensions/extension_warning_set.h (right): http://codereview.chromium.org/8176001/diff/15003/chrome/browser/extensions/extension_warning_set.h#newcode16 chrome/browser/extensions/extension_warning_set.h:16: class ExtensionWarning { This class should be ...
9 years, 2 months ago (2011-10-07 19:18:38 UTC) #7
Finnur
I was sick on Friday, so I didn't get to this until now. Reviewed: chrome/browser/resources/options/extension_list.js ...
9 years, 2 months ago (2011-10-10 09:59:24 UTC) #8
Finnur
Glen... http://codereview.chromium.org/8176001/diff/15003/chrome/browser/resources/options/extension_list.js File chrome/browser/resources/options/extension_list.js (right): http://codereview.chromium.org/8176001/diff/15003/chrome/browser/resources/options/extension_list.js#newcode242 chrome/browser/resources/options/extension_list.js:242: if (extension.warnings.length > 0) { I guess this ...
9 years, 2 months ago (2011-10-10 10:02:39 UTC) #9
Finnur
http://codereview.chromium.org/8176001/diff/15003/chrome/browser/ui/webui/options/extension_settings_handler.cc File chrome/browser/ui/webui/options/extension_settings_handler.cc (right): http://codereview.chromium.org/8176001/diff/15003/chrome/browser/ui/webui/options/extension_settings_handler.cc#newcode214 chrome/browser/ui/webui/options/extension_settings_handler.cc:214: NotificationService::AllSources()); See http://codereview.chromium.org/8199022/ for reference. On 2011/10/10 09:59:24, Finnur ...
9 years, 2 months ago (2011-10-10 10:37:27 UTC) #10
battre
Thanks for the reviews. http://codereview.chromium.org/8176001/diff/15003/chrome/browser/extensions/extension_warning_set.cc File chrome/browser/extensions/extension_warning_set.cc (right): http://codereview.chromium.org/8176001/diff/15003/chrome/browser/extensions/extension_warning_set.cc#newcode118 chrome/browser/extensions/extension_warning_set.cc:118: } On 2011/10/10 09:59:24, Finnur ...
9 years, 2 months ago (2011-10-10 13:16:36 UTC) #11
Finnur
My files LGTM, w/couple of nits. http://codereview.chromium.org/8176001/diff/15003/chrome/browser/resources/options/extension_list.js File chrome/browser/resources/options/extension_list.js (right): http://codereview.chromium.org/8176001/diff/15003/chrome/browser/resources/options/extension_list.js#newcode256 chrome/browser/resources/options/extension_list.js:256: warningList.appendChild(warningEntry); Ignore this ...
9 years, 2 months ago (2011-10-10 15:06:55 UTC) #12
battre
http://codereview.chromium.org/8176001/diff/15003/chrome/browser/ui/webui/options/extension_settings_handler.cc File chrome/browser/ui/webui/options/extension_settings_handler.cc (right): http://codereview.chromium.org/8176001/diff/15003/chrome/browser/ui/webui/options/extension_settings_handler.cc#newcode649 chrome/browser/ui/webui/options/extension_settings_handler.cc:649: l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); On 2011/10/10 15:06:56, Finnur wrote: > Hmm... This ...
9 years, 2 months ago (2011-10-10 15:55:57 UTC) #13
Glen Murphy
On 2011/10/10 10:02:39, Finnur wrote: > Glen... > > http://codereview.chromium.org/8176001/diff/15003/chrome/browser/resources/options/extension_list.js > File chrome/browser/resources/options/extension_list.js (right): > ...
9 years, 2 months ago (2011-10-10 17:39:08 UTC) #14
Matt Perry
lgtm
9 years, 2 months ago (2011-10-10 19:00:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/8176001/27001
9 years, 2 months ago (2011-10-11 15:35:20 UTC) #16
commit-bot: I haz the power
9 years, 2 months ago (2011-10-11 18:53:28 UTC) #17
Change committed as 104929

Powered by Google App Engine
This is Rietveld 408576698