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

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

Issue 8883030: Making profile avatars and names sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding a Profile Manager unittest Created 9 years 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 typedef std::vector<ProfilePathAndName> ProfilePathAndNames; 234 typedef std::vector<ProfilePathAndName> ProfilePathAndNames;
235 ProfilePathAndNames GetSortedProfilesFromDirectoryMap(); 235 ProfilePathAndNames GetSortedProfilesFromDirectoryMap();
236 236
237 static bool CompareProfilePathAndName( 237 static bool CompareProfilePathAndName(
238 const ProfileManager::ProfilePathAndName& pair1, 238 const ProfileManager::ProfilePathAndName& pair1,
239 const ProfileManager::ProfilePathAndName& pair2); 239 const ProfileManager::ProfilePathAndName& pair2);
240 240
241 // Adds |profile| to the profile info cache if it hasn't been added yet. 241 // Adds |profile| to the profile info cache if it hasn't been added yet.
242 void AddProfileToCache(Profile* profile); 242 void AddProfileToCache(Profile* profile);
243 243
244 // Initializes user prefs of |profile|. This includes profile name and
245 // avatar values
246 void InitProfileUserPrefs(Profile* profile);
247
244 // For ChromeOS, determines if profile should be otr. 248 // For ChromeOS, determines if profile should be otr.
245 bool ShouldGoOffTheRecord(); 249 bool ShouldGoOffTheRecord();
246 250
247 // Get the path of the next profile directory and increment the internal 251 // Get the path of the next profile directory and increment the internal
248 // count. 252 // count.
249 // Lack of side effects: 253 // Lack of side effects:
250 // This function doesn't actually create the directory or touch the file 254 // This function doesn't actually create the directory or touch the file
251 // system. 255 // system.
252 FilePath GenerateNextProfileDirectoryPath(); 256 FilePath GenerateNextProfileDirectoryPath();
253 257
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 class ProfileManagerWithoutInit : public ProfileManager { 297 class ProfileManagerWithoutInit : public ProfileManager {
294 public: 298 public:
295 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 299 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
296 300
297 protected: 301 protected:
298 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 302 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
299 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 303 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
300 }; 304 };
301 305
302 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 306 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698