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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm

Issue 1128173005: Clean up ProfileManager interface. Base URL: https://chromium.googlesource.com/chromium/src@issue479309
Patch Set: sync Created 5 years, 7 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/cocoa/profiles/profile_menu_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
index 5ee576fe66a875dec003d89759ba4a46724199e2..58cbc698fafb97a45d51e4cff13f2bdef9928d88 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
@@ -178,7 +178,8 @@ class Observer : public chrome::BrowserListObserver,
- (BOOL)validateMenuItem:(NSMenuItem*)menuItem {
// In guest mode, chrome://settings isn't available, so disallow creating
// or editing a profile.
- Profile* activeProfile = ProfileManager::GetLastUsedProfile();
+ Profile* activeProfile =
+ g_browser_process->profile_manager()->GetLastUsedProfile();
if (activeProfile->IsGuestSession()) {
return [menuItem action] != @selector(newProfile:) &&
[menuItem action] != @selector(editProfile:);
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_common.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698