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

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 2985006: GTK: reduce cpu usage of upgrade notification animation. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: merge to ToT Created 10 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
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index be48032aff93bc0b0022041ff213a9b3b6fa23bc..24b012b440400ca71aba08a265a20c39c2b72e2e 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -333,6 +333,8 @@ BrowserWindowGtk::BrowserWindowGtk(Browser* browser)
maximize_after_show_(false),
suppress_window_raise_(false),
accel_group_(NULL) {
+ ActiveWindowWatcherX::AddObserver(this);
tony 2010/07/13 22:09:47 What is the reason for this move? Should there be
Evan Stade 2010/07/13 22:29:40 the reason is so that the observer gets called fir
+
use_custom_frame_pref_.Init(prefs::kUseCustomChromeFrame,
browser_->profile()->GetPrefs(), this);
@@ -374,8 +376,6 @@ BrowserWindowGtk::BrowserWindowGtk(Browser* browser)
registrar_.Add(this, NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED,
NotificationService::AllSources());
-
- ActiveWindowWatcherX::AddObserver(this);
}
BrowserWindowGtk::~BrowserWindowGtk() {
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698