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

Side by Side Diff: chrome/browser/extensions/theme_installed_infobar_delegate.cc

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" 5 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/themes/theme_service.h" 12 #include "chrome/browser/themes/theme_service.h"
13 #include "chrome/browser/themes/theme_service_factory.h" 13 #include "chrome/browser/themes/theme_service_factory.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
16 #include "content/public/browser/notification_source.h" 16 #include "content/public/browser/notification_source.h"
17 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
18 #include "grit/theme_resources_standard.h" 18 #include "grit/theme_resources.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/base/resource/resource_bundle.h" 20 #include "ui/base/resource/resource_bundle.h"
21 21
22 ThemeInstalledInfoBarDelegate::ThemeInstalledInfoBarDelegate( 22 ThemeInstalledInfoBarDelegate::ThemeInstalledInfoBarDelegate(
23 InfoBarTabHelper* infobar_helper, 23 InfoBarTabHelper* infobar_helper,
24 ExtensionService* extension_service, 24 ExtensionService* extension_service,
25 ThemeService* theme_service, 25 ThemeService* theme_service,
26 const extensions::Extension* new_theme, 26 const extensions::Extension* new_theme,
27 const std::string& previous_theme_id, 27 const std::string& previous_theme_id,
28 bool previous_using_native_theme) 28 bool previous_using_native_theme)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void ThemeInstalledInfoBarDelegate::Observe( 101 void ThemeInstalledInfoBarDelegate::Observe(
102 int type, 102 int type,
103 const content::NotificationSource& source, 103 const content::NotificationSource& source,
104 const content::NotificationDetails& details) { 104 const content::NotificationDetails& details) {
105 DCHECK_EQ(chrome::NOTIFICATION_BROWSER_THEME_CHANGED, type); 105 DCHECK_EQ(chrome::NOTIFICATION_BROWSER_THEME_CHANGED, type);
106 // If the new theme is different from what this info bar is associated with, 106 // If the new theme is different from what this info bar is associated with,
107 // close this info bar since it is no longer relevant. 107 // close this info bar since it is no longer relevant.
108 if (theme_id_ != theme_service_->GetThemeID()) 108 if (theme_id_ != theme_service_->GetThemeID())
109 RemoveSelf(); 109 RemoveSelf();
110 } 110 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/image_loading_tracker.cc ('k') | chrome/browser/first_run/try_chrome_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698