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

Issue 503033002: Move ExtensionWarningService and ExtensionsWarningSet to extensions. (Closed)

Created:
6 years, 4 months ago by Xi Han
Modified:
6 years, 3 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, wjmaclean, lfg
Base URL:
https://chromium.googlesource.com/chromium/src.git@3_web_view_internal
Project:
chromium
Visibility:
Public.

Description

Move ExtensionWarningService and ExtensionsWarningSet, which are used by webrequest api, to extensions. This cl resolve the dependencies of ExtensionsWarningSet of chrome strings: - move the declarations of IDS_EXTENSION_WARNINGS_XXX to extensions_strings.grd; - replace the usage of "IDS_PRODUCT_NAME" by creating GetProductName() function in ExtensionsClient and its subclasses. BUG=352293 Committed: https://crrev.com/c7e55208cda02430540652a0973071b54a8edb1e Cr-Commit-Position: refs/heads/master@{#292378}

Patch Set 1 : #

Total comments: 21

Patch Set 2 : Rename. #

Total comments: 16

Patch Set 3 : Small changes are made. #

Patch Set 4 : rebase #

Patch Set 5 : rebase again. #

Patch Set 6 : #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -1002 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -24 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 7 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.cc View 1 2 6 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_helpers.h View 1 7 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_helpers.cc View 1 2 14 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 13 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_time_tracker.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_system_impl.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_system_impl.cc View 1 2 6 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_warning_badge_service.h View 1 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_warning_badge_service.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_warning_badge_service_unittest.cc View 1 2 4 chunks +13 lines, -13 lines 0 comments Download
D chrome/browser/extensions/extension_warning_service.h View 1 chunk +0 lines, -96 lines 0 comments Download
D chrome/browser/extensions/extension_warning_service.cc View 1 chunk +0 lines, -130 lines 0 comments Download
D chrome/browser/extensions/extension_warning_service_unittest.cc View 1 chunk +0 lines, -117 lines 0 comments Download
D chrome/browser/extensions/extension_warning_set.h View 1 chunk +0 lines, -124 lines 0 comments Download
D chrome/browser/extensions/extension_warning_set.cc View 1 chunk +0 lines, -237 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.h View 1 6 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 5 6 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/chrome_extensions_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/browser/extension_system.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/mock_extension_system.h View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/mock_extension_system.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + extensions/browser/warning_service.h View 1 5 chunks +20 lines, -22 lines 0 comments Download
A + extensions/browser/warning_service.cc View 1 2 5 4 chunks +37 lines, -40 lines 0 comments Download
A + extensions/browser/warning_service_unittest.cc View 1 3 chunks +29 lines, -29 lines 0 comments Download
A + extensions/browser/warning_set.h View 1 6 chunks +25 lines, -28 lines 0 comments Download
A + extensions/browser/warning_set.cc View 1 15 chunks +30 lines, -33 lines 0 comments Download
M extensions/common/extensions_client.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/extensions_strings.grd View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_extension_system.h View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/browser/shell_extension_system.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/common/shell_extensions_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/shell/common/shell_extensions_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/test/test_extensions_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/test/test_extensions_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Xi Han
Patchset #1 (id:1) has been deleted
6 years, 4 months ago (2014-08-25 17:45:58 UTC) #1
Xi Han
hanxi@chromium.org changed reviewers: + fsamuel@chromium.org
6 years, 4 months ago (2014-08-25 17:56:24 UTC) #2
Xi Han
6 years, 4 months ago (2014-08-25 17:56:25 UTC) #3
Fady Samuel
lgtm
6 years, 4 months ago (2014-08-25 18:48:31 UTC) #4
Xi Han
hanxi@chromium.org changed reviewers: + jamescook@chromium.org
6 years, 4 months ago (2014-08-25 18:53:18 UTC) #5
Xi Han
+ jamescook@chromium.org: Most the changes are made based on our discussions last time. Could you ...
6 years, 4 months ago (2014-08-25 18:53:19 UTC) #6
James Cook
A few comments / questions. https://codereview.chromium.org/503033002/diff/20001/chrome/common/extensions/chrome_extensions_client.cc File chrome/common/extensions/chrome_extensions_client.cc (right): https://codereview.chromium.org/503033002/diff/20001/chrome/common/extensions/chrome_extensions_client.cc#newcode104 chrome/common/extensions/chrome_extensions_client.cc:104: return "Chrome"; I don't ...
6 years, 4 months ago (2014-08-25 20:58:12 UTC) #7
Fady Samuel
https://codereview.chromium.org/503033002/diff/20001/extensions/browser/extension_warning_service.h File extensions/browser/extension_warning_service.h (right): https://codereview.chromium.org/503033002/diff/20001/extensions/browser/extension_warning_service.h#newcode33 extensions/browser/extension_warning_service.h:33: class ExtensionWarningService : public ExtensionRegistryObserver, On 2014/08/25 20:58:11, James ...
6 years, 4 months ago (2014-08-25 21:15:38 UTC) #8
Xi Han
Patchset #2 (id:40001) has been deleted
6 years, 3 months ago (2014-08-26 17:53:05 UTC) #9
Xi Han
Patchset #3 (id:80001) has been deleted
6 years, 3 months ago (2014-08-26 18:17:55 UTC) #10
Xi Han
The following classes are renamed: -ExtensionWarning will become Warning; -ExtensionWarningSet will become WarningSet; -ExtensionWarningService will ...
6 years, 3 months ago (2014-08-26 18:21:41 UTC) #11
James Cook
LGTM with (many) nits https://codereview.chromium.org/503033002/diff/100001/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc File chrome/browser/extensions/api/web_request/web_request_api_helpers.cc (right): https://codereview.chromium.org/503033002/diff/100001/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc#newcode36 chrome/browser/extensions/api/web_request/web_request_api_helpers.cc:36: using extensions::Warning; nit: I either ...
6 years, 3 months ago (2014-08-26 22:01:32 UTC) #12
Xi Han
Patchset #2 (id:60001) has been deleted
6 years, 3 months ago (2014-08-27 13:24:36 UTC) #13
Xi Han
hanxi@chromium.org changed reviewers: + rockot@chromium.org
6 years, 3 months ago (2014-08-27 13:32:55 UTC) #14
Xi Han
+rockot@chromium.org: Please review all changes. Thanks! https://codereview.chromium.org/503033002/diff/100001/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc File chrome/browser/extensions/api/web_request/web_request_api_helpers.cc (right): https://codereview.chromium.org/503033002/diff/100001/chrome/browser/extensions/api/web_request/web_request_api_helpers.cc#newcode36 chrome/browser/extensions/api/web_request/web_request_api_helpers.cc:36: using extensions::Warning; On ...
6 years, 3 months ago (2014-08-27 13:32:55 UTC) #15
Ken Rockot(use gerrit already)
lgtm
6 years, 3 months ago (2014-08-27 17:49:12 UTC) #16
Xi Han
hanxi@chromium.org changed reviewers: + kalman@chromium.org
6 years, 3 months ago (2014-08-27 17:50:30 UTC) #17
Xi Han
kalman@chromium.org: Please review changes in: -chrome/browser/ui/webui/extensions/extension_settings_handler.h -chrome/browser/ui/webui/extensions/extension_settings_handler.cc Thanks!
6 years, 3 months ago (2014-08-27 17:50:31 UTC) #18
not at google - send to devlin
lgtm
6 years, 3 months ago (2014-08-27 19:23:57 UTC) #19
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 3 months ago (2014-08-27 19:42:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/503033002/120001
6 years, 3 months ago (2014-08-27 19:43:31 UTC) #21
Xi Han
The CQ bit was unchecked by hanxi@chromium.org
6 years, 3 months ago (2014-08-27 19:50:16 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_arm64_dbg_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-27 19:50:43 UTC) #23
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 3 months ago (2014-08-27 20:15:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/503033002/140001
6 years, 3 months ago (2014-08-27 20:16:38 UTC) #25
Xi Han
The CQ bit was unchecked by hanxi@chromium.org
6 years, 3 months ago (2014-08-27 20:22:34 UTC) #26
Xi Han
Patchset #5 (id:160001) has been deleted
6 years, 3 months ago (2014-08-27 21:21:26 UTC) #27
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 3 months ago (2014-08-27 21:33:00 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/503033002/200001
6 years, 3 months ago (2014-08-27 21:33:17 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-27 22:28:15 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 22:36:51 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/10127)
6 years, 3 months ago (2014-08-27 22:36:53 UTC) #32
Xi Han
The CQ bit was checked by hanxi@chromium.org
6 years, 3 months ago (2014-08-28 13:04:31 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hanxi@chromium.org/503033002/220001
6 years, 3 months ago (2014-08-28 13:05:07 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:220001) as 35643f423cc34536735fb2ca6412a4c2438a3f82
6 years, 3 months ago (2014-08-28 14:13:33 UTC) #35
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:59:26 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c7e55208cda02430540652a0973071b54a8edb1e
Cr-Commit-Position: refs/heads/master@{#292378}

Powered by Google App Engine
This is Rietveld 408576698