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

Side by Side Diff: chrome/browser/profiles/profile_manager.h

Issue 594163002: Restore last used user session after crash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: special case in ChromeUserManagerImpl Created 6 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This class keeps track of the currently-active profiles in the runtime. 5 // This class keeps track of the currently-active profiles in the runtime.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
9 9
10 #include <list> 10 #include <list>
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 // For ChromeOS, determines if profile should be otr. 273 // For ChromeOS, determines if profile should be otr.
274 bool ShouldGoOffTheRecord(Profile* profile); 274 bool ShouldGoOffTheRecord(Profile* profile);
275 275
276 void RunCallbacks(const std::vector<CreateCallback>& callbacks, 276 void RunCallbacks(const std::vector<CreateCallback>& callbacks,
277 Profile* profile, 277 Profile* profile,
278 Profile::CreateStatus status); 278 Profile::CreateStatus status);
279 279
280 #if !defined(OS_ANDROID) && !defined(OS_IOS) 280 #if !defined(OS_ANDROID) && !defined(OS_IOS)
281 // Updates the last active user of the current session. 281 // Updates the last active user of the current session.
282 // On Chrome OS updating this user will have no effect since when browser is
283 // restored after crash there's another preference that is taken into account.
284 // See kLastActiveUser in UserManagerBase.
282 void UpdateLastUser(Profile* last_active); 285 void UpdateLastUser(Profile* last_active);
283 286
284 class BrowserListObserver : public chrome::BrowserListObserver { 287 class BrowserListObserver : public chrome::BrowserListObserver {
285 public: 288 public:
286 explicit BrowserListObserver(ProfileManager* manager); 289 explicit BrowserListObserver(ProfileManager* manager);
287 virtual ~BrowserListObserver(); 290 virtual ~BrowserListObserver();
288 291
289 // chrome::BrowserListObserver implementation. 292 // chrome::BrowserListObserver implementation.
290 virtual void OnBrowserAdded(Browser* browser) OVERRIDE; 293 virtual void OnBrowserAdded(Browser* browser) OVERRIDE;
291 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE; 294 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 class ProfileManagerWithoutInit : public ProfileManager { 357 class ProfileManagerWithoutInit : public ProfileManager {
355 public: 358 public:
356 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 359 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
357 360
358 protected: 361 protected:
359 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 362 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
360 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 363 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
361 }; 364 };
362 365
363 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 366 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/profiles/profile_helper.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698