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

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: Multi-Profiles: Add delete profile command 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
« no previous file with comments | « chrome/browser/ui/cocoa/browser/avatar_button.mm ('k') | chrome/browser/ui/gtk/profile_menu_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/browser_titlebar.cc
===================================================================
--- chrome/browser/ui/gtk/browser_titlebar.cc (revision 91776)
+++ chrome/browser/ui/gtk/browser_titlebar.cc (working copy)
@@ -320,10 +320,11 @@
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 @@
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;
}
« no previous file with comments | « chrome/browser/ui/cocoa/browser/avatar_button.mm ('k') | chrome/browser/ui/gtk/profile_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698