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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_APP_CONTROLLER_PROFILE_OBSERVER_H_
6 #define CHROME_BROWSER_APP_CONTROLLER_PROFILE_OBSERVER_H_
7
8 #include "chrome/browser/profiles/profile_info_cache_observer.h"
9 #include "chrome/browser/profiles/profile_manager.h"
10
11 class AppControllerProfileObserver : public ProfileInfoCacheObserver {
12 public:
13 AppControllerProfileObserver(
14 ProfileManager* profile_manager, id app_controller);
15 virtual ~AppControllerProfileObserver();
16
17 private:
18 ProfileManager* profile_manager_;
19
20 id app_controller_;
21
22 // Overridden from ProfileInfoCacheObserver:
23 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE;
24 virtual void OnProfileWillBeRemoved(
25 const base::FilePath& profile_path) OVERRIDE;
26 virtual void OnProfileWasRemoved(const base::FilePath& profile_path,
27 const string16& profile_name) OVERRIDE;
28 virtual void OnProfileNameChanged(const base::FilePath& profile_path,
29 const string16& old_profile_name) OVERRIDE;
30 virtual void OnProfileAvatarChanged(
31 const base::FilePath& profile_path) OVERRIDE;
32 };
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.
33
34 #endif // CHROME_BROWSER_APP_CONTROLLER_PROFILE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698