diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 20:53:38 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-18 20:53:38 +0000 |
commit | 62aed757049b77c39b94a2b8939fa86419ade257 (patch) | |
tree | ec7a43d30024f0fc06f797cace5baba697d0cae0 /chrome/browser/browser_theme_provider.cc | |
parent | 50a74ff479715365b1eb54bee405b184b499ce36 (diff) | |
download | chromium_src-62aed757049b77c39b94a2b8939fa86419ade257.zip chromium_src-62aed757049b77c39b94a2b8939fa86419ade257.tar.gz chromium_src-62aed757049b77c39b94a2b8939fa86419ade257.tar.bz2 |
Some app-related manifest cleanup:
1) Group app-related keys under a new "app" key, and change
the implementation of IsApp() to just check that.
2) Rename IsApp() and IsTheme() -> is_app(), is_theme() to
match style guide.
3) Remove web_content.enabled. That was a stupid idea.
4) Make some kind of launch URL required for apps.
BUG=46632
Review URL: http://codereview.chromium.org/2836012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.cc')
-rw-r--r-- | chrome/browser/browser_theme_provider.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/browser_theme_provider.cc b/chrome/browser/browser_theme_provider.cc index cdbb684..b26ff4e 100644 --- a/chrome/browser/browser_theme_provider.cc +++ b/chrome/browser/browser_theme_provider.cc @@ -269,7 +269,7 @@ void BrowserThemeProvider::SetTheme(Extension* extension) { FreePlatformCaches(); DCHECK(extension); - DCHECK(extension->IsTheme()); + DCHECK(extension->is_theme()); BuildFromExtension(extension); SaveThemeID(extension->id()); @@ -289,7 +289,7 @@ void BrowserThemeProvider::RemoveUnusedThemes() { const ExtensionList* extensions = service->extensions(); for (ExtensionList::const_iterator it = extensions->begin(); it != extensions->end(); ++it) { - if ((*it)->IsTheme() && (*it)->id() != current_theme) { + if ((*it)->is_theme() && (*it)->id() != current_theme) { remove_list.push_back((*it)->id()); } } |