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

Unified Diff: chrome/browser/ui/gtk/browser_titlebar.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/browser_titlebar.cc
===================================================================
--- chrome/browser/ui/gtk/browser_titlebar.cc (revision 91880)
+++ chrome/browser/ui/gtk/browser_titlebar.cc (working copy)
@@ -403,7 +403,7 @@
// color.
theme_service_ = GtkThemeService::GetFrom(
browser_window_->browser()->profile());
- registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED,
+ registrar_.Add(this, chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
Source<ThemeService>(theme_service_));
theme_service_->InitThemesFor(this);
UpdateTitleAndIcon();
@@ -942,15 +942,15 @@
return accelerator_gtk;
}
-void BrowserTitlebar::Observe(NotificationType type,
+void BrowserTitlebar::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::BROWSER_THEME_CHANGED:
+ switch (type) {
+ case chrome::NOTIFICATION_BROWSER_THEME_CHANGED:
UpdateTextColor();
break;
- case NotificationType::PREF_CHANGED: {
+ case chrome::PREF_CHANGED: {
std::string* name = Details<std::string>(details).ptr();
if (prefs::kGoogleServicesUsername == *name)
profile_button_->UpdateText();

Powered by Google App Engine
This is Rietveld 408576698