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

Unified Diff: chrome/browser/app_controller_profile_observer.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: Created 7 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/app_controller_profile_observer.h
diff --git a/chrome/browser/app_controller_profile_observer.h b/chrome/browser/app_controller_profile_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3d72a87a487a604981d388729b992cb1ebf7405
--- /dev/null
+++ b/chrome/browser/app_controller_profile_observer.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_APP_CONTROLLER_PROFILE_OBSERVER_H_
+#define CHROME_BROWSER_APP_CONTROLLER_PROFILE_OBSERVER_H_
+
+#include "chrome/browser/profiles/profile_info_cache_observer.h"
+#include "chrome/browser/profiles/profile_manager.h"
+
+class AppControllerProfileObserver : public ProfileInfoCacheObserver {
+ public:
+ AppControllerProfileObserver(
+ ProfileManager* profile_manager, id app_controller);
+ virtual ~AppControllerProfileObserver();
+
+ private:
+ ProfileManager* profile_manager_;
+
+ id app_controller_;
+
+ // Overridden from ProfileInfoCacheObserver:
+ virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE;
+ virtual void OnProfileWillBeRemoved(
+ const base::FilePath& profile_path) OVERRIDE;
+ virtual void OnProfileWasRemoved(const base::FilePath& profile_path,
+ const string16& profile_name) OVERRIDE;
+ virtual void OnProfileNameChanged(const base::FilePath& profile_path,
+ const string16& old_profile_name) OVERRIDE;
+ virtual void OnProfileAvatarChanged(
+ const base::FilePath& profile_path) OVERRIDE;
+};
Roger Tawa OOO till Jul 10th 2013/05/07 20:54:15 I think you need DISALLOW_COPY_AND_ASSIGN() here.
noms (inactive) 2013/05/08 15:19:35 Done.
+
+#endif // CHROME_BROWSER_APP_CONTROLLER_PROFILE_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698