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

Unified Diff: chrome/browser/app_controller_mac.h

Issue 14923004: [Mac] AppController needs to update its "last profile" pointer when the active profile is deleted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: derp. no test on CrOS either. Created 7 years, 6 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 | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.h
diff --git a/chrome/browser/app_controller_mac.h b/chrome/browser/app_controller_mac.h
index 5928e1706c2a4a0a78331ed7ff882b45f51d91a7..46d8a051f3328c97b1c4c7ab344bd5879ebd9835 100644
--- a/chrome/browser/app_controller_mac.h
+++ b/chrome/browser/app_controller_mac.h
@@ -16,6 +16,7 @@
#include "base/prefs/pref_change_registrar.h"
#include "ui/base/work_area_watcher_observer.h"
+class AppControllerProfileObserver;
class BookmarkMenuBridge;
class CommandUpdater;
class GURL;
@@ -39,6 +40,10 @@ class WorkAreaWatcherObserver;
// build the user-data specific main menu items.
Profile* lastProfile_;
+ // The ProfileObserver observes the ProfileInfoCache and gets notified
+ // when a profile has been deleted.
+ scoped_ptr<AppControllerProfileObserver> profileInfoCacheObserver_;
+
// Management of the bookmark menu which spans across all windows
// (and Browser*s).
scoped_ptr<BookmarkMenuBridge> bookmarkMenuBridge_;
@@ -101,7 +106,7 @@ class WorkAreaWatcherObserver;
- (IBAction)showPreferences:(id)sender;
// Redirect in the menu item from the expected target of "File's
-// Owner" (NSAppliation) for a Branded About Box
+// Owner" (NSApplication) for a Branded About Box
- (IBAction)orderFrontStandardAboutPanel:(id)sender;
// Toggles the "Confirm to Quit" preference.
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698