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

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

Issue 10590004: [cros] Fake a stub user login when no --login-manager and --login-user are given. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments and mock expectations. Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 #pragma once 9 #pragma once
10 10
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/profiles/profile_shortcut_manager_win.h" 29 #include "chrome/browser/profiles/profile_shortcut_manager_win.h"
30 #endif 30 #endif
31 31
32 class NewProfileLauncher; 32 class NewProfileLauncher;
33 class ProfileInfoCache; 33 class ProfileInfoCache;
34 34
35 class ProfileManager : public base::NonThreadSafe, 35 class ProfileManager : public base::NonThreadSafe,
36 public content::NotificationObserver, 36 public content::NotificationObserver,
37 public Profile::Delegate { 37 public Profile::Delegate {
38 public: 38 public:
39 // Profile directory name for the test user. This is "Default" on most
40 // platforms but must be different on ChromeOS because a logged-in user cannot
41 // use "Default" as profile directory.
42 // Browser- and UI tests should always use this to get to the user's profile
43 // directory. Unit-tests, though, should use "Default" always because they
44 // are runnining without logged-in user.
45 static const char kTestUserProfile[];
46
39 typedef base::Callback<void(Profile*, Profile::CreateStatus)> CreateCallback; 47 typedef base::Callback<void(Profile*, Profile::CreateStatus)> CreateCallback;
40 48
41 explicit ProfileManager(const FilePath& user_data_dir); 49 explicit ProfileManager(const FilePath& user_data_dir);
42 virtual ~ProfileManager(); 50 virtual ~ProfileManager();
43 51
44 #if defined(ENABLE_SESSION_SERVICE) 52 #if defined(ENABLE_SESSION_SERVICE)
45 // Invokes SessionServiceFactory::ShutdownForProfile() for all profiles. 53 // Invokes SessionServiceFactory::ShutdownForProfile() for all profiles.
46 static void ShutdownSessionServices(); 54 static void ShutdownSessionServices();
47 #endif 55 #endif
48 56
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 class ProfileManagerWithoutInit : public ProfileManager { 354 class ProfileManagerWithoutInit : public ProfileManager {
347 public: 355 public:
348 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 356 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
349 357
350 protected: 358 protected:
351 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 359 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
352 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 360 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
353 }; 361 };
354 362
355 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 363 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698