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

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

Issue 7619008: Change kNotSignedInProfile to kInitialProfile to better reflect its usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: I can't spel Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ProfileManagerObserver* observer); 91 ProfileManagerObserver* observer);
92 92
93 // Initiates default profile creation. If default profile has already been 93 // Initiates default profile creation. If default profile has already been
94 // created, observer is called immediately. Should be called on the UI thread. 94 // created, observer is called immediately. Should be called on the UI thread.
95 static void CreateDefaultProfileAsync(ProfileManagerObserver* observer); 95 static void CreateDefaultProfileAsync(ProfileManagerObserver* observer);
96 96
97 // Returns true if the profile pointer is known to point to an existing 97 // Returns true if the profile pointer is known to point to an existing
98 // profile. 98 // profile.
99 bool IsValidProfile(Profile* profile); 99 bool IsValidProfile(Profile* profile);
100 100
101 // Returns the directory where the currently active profile is 101 // Returns the directory where the first created profile is stored,
102 // stored, relative to the user data directory currently in use.. 102 // relative to the user data directory currently in use..
103 FilePath GetCurrentProfileDir(); 103 FilePath GetInitialProfileDir();
104 104
105 // Get the Profile last used with this Chrome build. If no signed profile has 105 // Get the Profile last used with this Chrome build. If no signed profile has
106 // been stored in Local State, hand back the Default profile. 106 // been stored in Local State, hand back the Default profile.
107 Profile* GetLastUsedProfile(const FilePath& user_data_dir); 107 Profile* GetLastUsedProfile(const FilePath& user_data_dir);
108 108
109 // Same as instance method but provides the default user_data_dir as well. 109 // Same as instance method but provides the default user_data_dir as well.
110 static Profile* GetLastUsedProfile(); 110 static Profile* GetLastUsedProfile();
111 111
112 // Register the mapping of a directory to a profile name in Local State. 112 // Register the mapping of a directory to a profile name in Local State.
113 void RegisterProfileName(Profile* profile); 113 void RegisterProfileName(Profile* profile);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 }; 237 };
238 238
239 // Same as the ProfileManager, but doesn't initialize some services of the 239 // Same as the ProfileManager, but doesn't initialize some services of the
240 // profile. This one is useful in unittests. 240 // profile. This one is useful in unittests.
241 class ProfileManagerWithoutInit : public ProfileManager { 241 class ProfileManagerWithoutInit : public ProfileManager {
242 protected: 242 protected:
243 virtual void DoFinalInit(Profile*, bool) {} 243 virtual void DoFinalInit(Profile*, bool) {}
244 }; 244 };
245 245
246 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 246 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/fast_shutdown_interactive_uitest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698