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

Issue 11434002: Change ThemeService to handle uninstalled themes. (Closed)

Created:
8 years ago by Andrew T Wilson (Slow)
Modified:
8 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Change ThemeService to handle uninstalled themes. ThemeService now reverts to the default theme if the current theme is unloaded. BUG=161263 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170946

Patch Set 1 #

Patch Set 2 : Merge with ToT. #

Patch Set 3 : No longer reset themes when a theme is updated. #

Total comments: 5

Patch Set 4 : Review feedback. #

Total comments: 8

Patch Set 5 : Addressed akalin's review feedback. #

Total comments: 1

Patch Set 6 : Back to the future - reverting to my original approach #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -2 lines) Patch
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service_unittest.cc View 1 2 3 4 5 3 chunks +81 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Andrew T Wilson (Slow)
PTAL
8 years ago (2012-11-28 17:51:23 UTC) #1
Andrew T Wilson (Slow)
PTAL
8 years ago (2012-11-29 20:33:07 UTC) #2
akalin
https://codereview.chromium.org/11434002/diff/13001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/11434002/diff/13001/chrome/browser/extensions/extension_service.cc#newcode1175 chrome/browser/extensions/extension_service.cc:1175: ThemeService* theme_service = ThemeServiceFactory::GetForProfile(profile_); can you use ThemeService::GetThemeIDForProfile()? (I'm ...
8 years ago (2012-11-29 20:40:12 UTC) #3
pkotwicz
themes/ LGTM with nits. Please address akalin@'s nit as well.
8 years ago (2012-11-29 22:06:01 UTC) #4
pkotwicz
https://codereview.chromium.org/11434002/diff/13001/chrome/browser/themes/theme_service_unittest.cc File chrome/browser/themes/theme_service_unittest.cc (right): https://codereview.chromium.org/11434002/diff/13001/chrome/browser/themes/theme_service_unittest.cc#newcode15 chrome/browser/themes/theme_service_unittest.cc:15: namespace { Nit: Add new line https://codereview.chromium.org/11434002/diff/13001/chrome/browser/themes/theme_service_unittest.cc#newcode95 chrome/browser/themes/theme_service_unittest.cc:95: // ...
8 years ago (2012-11-29 22:06:09 UTC) #5
Andrew T Wilson (Slow)
https://codereview.chromium.org/11434002/diff/13001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/11434002/diff/13001/chrome/browser/extensions/extension_service.cc#newcode1175 chrome/browser/extensions/extension_service.cc:1175: ThemeService* theme_service = ThemeServiceFactory::GetForProfile(profile_); On 2012/11/29 20:40:12, akalin wrote: ...
8 years ago (2012-11-30 12:44:55 UTC) #6
akalin
lgtm after nits https://codereview.chromium.org/11434002/diff/10008/chrome/browser/themes/theme_service_unittest.cc File chrome/browser/themes/theme_service_unittest.cc (right): https://codereview.chromium.org/11434002/diff/10008/chrome/browser/themes/theme_service_unittest.cc#newcode88 chrome/browser/themes/theme_service_unittest.cc:88: // Installs then uninstalls a theme ...
8 years ago (2012-11-30 18:25:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/11434002/10008
8 years ago (2012-12-03 12:13:53 UTC) #8
commit-bot: I haz the power
Presubmit check for 11434002-10008 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-03 12:13:59 UTC) #9
Andrew T Wilson (Slow)
+asargent for OWNERS rubberstamp https://codereview.chromium.org/11434002/diff/10008/chrome/browser/themes/theme_service_unittest.cc File chrome/browser/themes/theme_service_unittest.cc (right): https://codereview.chromium.org/11434002/diff/10008/chrome/browser/themes/theme_service_unittest.cc#newcode88 chrome/browser/themes/theme_service_unittest.cc:88: // Installs then uninstalls a ...
8 years ago (2012-12-03 12:34:58 UTC) #10
asargent_no_longer_on_chrome
LGTM
8 years ago (2012-12-03 18:44:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/11434002/3004
8 years ago (2012-12-04 08:00:39 UTC) #12
akalin
https://chromiumcodereview.appspot.com/11434002/diff/3004/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://chromiumcodereview.appspot.com/11434002/diff/3004/chrome/browser/extensions/extension_service.cc#newcode1175 chrome/browser/extensions/extension_service.cc:1175: extension->id() == ThemeService::GetThemeIDForProfile(profile_)) { i actually had to revert ...
8 years ago (2012-12-04 08:03:50 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-04 08:27:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/11434002/6009
8 years ago (2012-12-04 09:41:55 UTC) #15
commit-bot: I haz the power
8 years ago (2012-12-04 13:00:19 UTC) #16
Message was sent while issue was closed.
Change committed as 170946

Powered by Google App Engine
This is Rietveld 408576698