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

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

Issue 7321011: Multi-Profiles: Add delete profile command (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debug code 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
diff --git a/chrome/browser/ui/gtk/browser_titlebar.cc b/chrome/browser/ui/gtk/browser_titlebar.cc
index a166d130381956a142728306576fbe7c6e34e63f..e1bfa4faa4ce989332e215f05054dc0cb2adcf5e 100644
--- a/chrome/browser/ui/gtk/browser_titlebar.cc
+++ b/chrome/browser/ui/gtk/browser_titlebar.cc
@@ -320,10 +320,11 @@ void BrowserTitlebar::Init() {
FALSE, FALSE, 0);
gtk_widget_show_all(titlebar_profile_vbox_);
- profile_button_.reset(new ProfileMenuButton());
+ profile_button_.reset(new ProfileMenuButton(
+ browser_window_->browser()->profile()));
gtk_box_pack_start(GTK_BOX(titlebar_profile_vbox_),
profile_button_->widget(), FALSE, FALSE, 0);
- profile_button_->UpdateText(browser_window_->browser()->profile());
+ profile_button_->UpdateText();
}
if (browser_window_->browser()->profile()->IsOffTheRecord() &&
@@ -952,7 +953,7 @@ void BrowserTitlebar::Observe(NotificationType type,
case NotificationType::PREF_CHANGED: {
std::string* name = Details<std::string>(details).ptr();
if (prefs::kGoogleServicesUsername == *name)
- profile_button_->UpdateText(browser_window_->browser()->profile());
+ profile_button_->UpdateText();
break;
}

Powered by Google App Engine
This is Rietveld 408576698