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

Issue 11968032: Move 'theme' parsing out of Extension class (Closed)

Created:
7 years, 11 months ago by Joe Thomas
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move 'theme' parsing out of Extension class BUG=159265 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181826

Patch Set 1 #

Patch Set 2 : ManifestHandler registration in theme_service #

Total comments: 4

Patch Set 3 : review comments addressed #

Patch Set 4 : TOT (new ManifestHandler interface) + Android gypi changes #

Total comments: 12

Patch Set 5 : Devlin + latest master #

Patch Set 6 : DISALLOW_COPY_AND_ASSIGN #

Patch Set 7 : TOT #

Patch Set 8 : unittest fixed #

Patch Set 9 : PrefProviderTest.Incognito fixed #

Total comments: 6

Patch Set 10 : Removed TestingProfile::SetPrefService #

Patch Set 11 : tot #

Patch Set 12 : fixed IncognitoAutofillManagerTest unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -176 lines) Patch
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service_factory.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/themes/theme_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/i18n/default_locale_handler.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/themes/theme_handler.h View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/themes/theme_handler.cc View 1 2 3 4 1 chunk +172 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -29 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +2 lines, -107 lines 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/common/extensions/unpacker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +3 lines, -11 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +4 lines, -15 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
Joe Thomas
7 years, 11 months ago (2013-01-17 01:44:44 UTC) #1
Joe Thomas
7 years, 11 months ago (2013-01-18 02:06:12 UTC) #2
Yoyo Zhou
Just a general comment: do you see a place this could go in chrome/browser/themes rather ...
7 years, 11 months ago (2013-01-22 21:48:08 UTC) #3
Joe Thomas
On 2013/01/22 21:48:08, Yoyo Zhou wrote: > Just a general comment: do you see a ...
7 years, 11 months ago (2013-01-23 22:55:34 UTC) #4
Yoyo Zhou
https://chromiumcodereview.appspot.com/11968032/diff/5001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://chromiumcodereview.appspot.com/11968032/diff/5001/chrome/browser/themes/theme_service.cc#newcode214 chrome/browser/themes/theme_service.cc:214: ThemeService::ThemeService() It seems like this would work as is ...
7 years, 11 months ago (2013-01-26 00:54:02 UTC) #5
Joe Thomas
Thanks for the review. Patch updated. https://chromiumcodereview.appspot.com/11968032/diff/5001/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://chromiumcodereview.appspot.com/11968032/diff/5001/chrome/browser/themes/theme_service.cc#newcode214 chrome/browser/themes/theme_service.cc:214: ThemeService::ThemeService() On 2013/01/26 ...
7 years, 11 months ago (2013-01-26 02:05:55 UTC) #6
Yoyo Zhou
LGTM
7 years, 10 months ago (2013-01-30 00:24:41 UTC) #7
Joe Thomas
Yoyo@ With new ManifestHandler interface. + pkotwicz@ for c/b/themes + ben@ for gyp changes & ...
7 years, 10 months ago (2013-01-30 02:10:42 UTC) #8
Devlin
https://chromiumcodereview.appspot.com/11968032/diff/11002/chrome/common/extensions/api/themes/theme_handler.cc File chrome/common/extensions/api/themes/theme_handler.cc (right): https://chromiumcodereview.appspot.com/11968032/diff/11002/chrome/common/extensions/api/themes/theme_handler.cc#newcode50 chrome/common/extensions/api/themes/theme_handler.cc:50: // The color must be a list nit: comments ...
7 years, 10 months ago (2013-01-30 02:56:40 UTC) #9
Joe Thomas
https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/extension.h File chrome/common/extensions/extension.h (left): https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/extension.h#oldcode679 chrome/common/extensions/extension.h:679: bool is_theme() const; On 2013/01/30 02:56:40, D Cronin wrote: ...
7 years, 10 months ago (2013-01-30 18:15:39 UTC) #10
Ben Goodger (Google)
lgtm
7 years, 10 months ago (2013-01-30 18:44:16 UTC) #11
pkotwicz
LGTM, with a question https://codereview.chromium.org/11968032/diff/11002/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/11968032/diff/11002/chrome/browser/themes/theme_service.cc#newcode222 chrome/browser/themes/theme_service.cc:222: new extensions::ThemeHandler); This is probably ...
7 years, 10 months ago (2013-01-30 20:45:28 UTC) #12
Joe Thomas
https://codereview.chromium.org/11968032/diff/11002/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/11968032/diff/11002/chrome/browser/themes/theme_service.cc#newcode222 chrome/browser/themes/theme_service.cc:222: new extensions::ThemeHandler); Thanks for the review! On 2013/01/30 20:45:28, ...
7 years, 10 months ago (2013-01-30 21:12:45 UTC) #13
pkotwicz
LGTM
7 years, 10 months ago (2013-01-30 21:20:46 UTC) #14
nilesh
On 2013/01/30 02:10:42, Joe Thomas wrote: > Yoyo@ > With new ManifestHandler interface. > > ...
7 years, 10 months ago (2013-01-30 21:24:47 UTC) #15
Yoyo Zhou
https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/extension.h File chrome/common/extensions/extension.h (left): https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/extension.h#oldcode679 chrome/common/extensions/extension.h:679: bool is_theme() const; On 2013/01/30 18:15:39, Joe Thomas wrote: ...
7 years, 10 months ago (2013-01-30 22:11:06 UTC) #16
Joe Thomas
D Cronin@ Thanks for the review. Comments addressed. https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/api/themes/theme_handler.cc File chrome/common/extensions/api/themes/theme_handler.cc (right): https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/api/themes/theme_handler.cc#newcode50 chrome/common/extensions/api/themes/theme_handler.cc:50: // ...
7 years, 10 months ago (2013-01-30 23:15:18 UTC) #17
Devlin
https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/api/themes/theme_handler.h File chrome/common/extensions/api/themes/theme_handler.h (right): https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/api/themes/theme_handler.h#newcode50 chrome/common/extensions/api/themes/theme_handler.h:50: DISALLOW_COPY_AND_ASSIGN(ThemeHandler); On 2013/01/30 23:15:19, Joe Thomas wrote: > On ...
7 years, 10 months ago (2013-01-30 23:36:33 UTC) #18
Joe Thomas
On 2013/01/30 23:36:33, D Cronin wrote: > https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/api/themes/theme_handler.h > File chrome/common/extensions/api/themes/theme_handler.h (right): > > https://codereview.chromium.org/11968032/diff/11002/chrome/common/extensions/api/themes/theme_handler.h#newcode50 ...
7 years, 10 months ago (2013-01-31 18:08:30 UTC) #19
Devlin
On 2013/01/31 18:08:30, Joe Thomas wrote: > On 2013/01/30 23:36:33, D Cronin wrote: > > ...
7 years, 10 months ago (2013-02-01 00:03:45 UTC) #20
Devlin
On 2013/01/31 18:08:30, Joe Thomas wrote: > On 2013/01/30 23:36:33, D Cronin wrote: > > ...
7 years, 10 months ago (2013-02-01 00:03:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11968032/31011
7 years, 10 months ago (2013-02-01 17:26:14 UTC) #22
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 10 months ago (2013-02-01 17:46:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11968032/31011
7 years, 10 months ago (2013-02-01 18:55:08 UTC) #24
Joe Thomas
yoz@, pkotwicz@ The unit test ProtocolHandlerRegistryTest.ClearDefaultMakesProtocolNotHandled was crashing during TestingProfile destruction. I fixed it by ...
7 years, 10 months ago (2013-02-01 21:28:32 UTC) #25
pkotwicz
Still LGTM
7 years, 10 months ago (2013-02-04 18:23:14 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11968032/14033
7 years, 10 months ago (2013-02-04 18:57:17 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=14323
7 years, 10 months ago (2013-02-04 19:40:27 UTC) #28
Joe Thomas
yoz@ Setting the ServiceIsNULLWhileTesting boolean in theme_service_factory in patch-set 8 led to more unittest crashes ...
7 years, 10 months ago (2013-02-05 23:58:00 UTC) #29
pkotwicz
Adding battre@ as a reviewer for his knowledge about the pref service.
7 years, 10 months ago (2013-02-06 01:57:52 UTC) #30
battre
On 2013/02/05 23:58:00, Joe Thomas wrote: > yoz@ > > Setting the ServiceIsNULLWhileTesting boolean in ...
7 years, 10 months ago (2013-02-06 12:56:24 UTC) #31
Joe Thomas
On 2013/02/06 12:56:24, battre wrote: > On 2013/02/05 23:58:00, Joe Thomas wrote: > > yoz@ ...
7 years, 10 months ago (2013-02-06 23:41:58 UTC) #32
battre
LGTM @ content_settings_pref_provider_unittest.cc Please remove TestingProfile::SetPrefService as using it is likely to cause trouble. Thanks. ...
7 years, 10 months ago (2013-02-07 09:45:08 UTC) #33
Joe Thomas
battre@ Thanks for the review. https://codereview.chromium.org/11968032/diff/55001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): https://codereview.chromium.org/11968032/diff/55001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode157 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:157: profile->SetOffTheRecordProfile(otr_profile); On 2013/02/07 09:45:08, ...
7 years, 10 months ago (2013-02-07 14:22:54 UTC) #34
Joe Thomas
Removed TestingProfile::SetPrefService. Addressed other review comments. https://codereview.chromium.org/11968032/diff/55001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): https://codereview.chromium.org/11968032/diff/55001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode149 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:149: profile_builder.SetPrefService(make_scoped_ptr(regular_prefs).Pass()); On 2013/02/07 ...
7 years, 10 months ago (2013-02-07 18:30:30 UTC) #35
battre
Thanks. Still LGTM
7 years, 10 months ago (2013-02-07 18:51:23 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11968032/61007
7 years, 10 months ago (2013-02-11 18:56:59 UTC) #37
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=16101
7 years, 10 months ago (2013-02-11 19:49:52 UTC) #38
Joe Thomas
isherman@ Could you please review chrome/browser/autofill/autofill_manager_unittest.cc and testing_profile.cc/h changes to remove TestingProfile::Builder::SetOffTheRecord() as it's not ...
7 years, 10 months ago (2013-02-11 21:33:53 UTC) #39
Ilya Sherman
LGTM, thanks.
7 years, 10 months ago (2013-02-11 22:15:00 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/MHX348@motorola.com/11968032/56013
7 years, 10 months ago (2013-02-11 22:19:05 UTC) #41
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 02:23:14 UTC) #42
Message was sent while issue was closed.
Change committed as 181826

Powered by Google App Engine
This is Rietveld 408576698