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

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

Issue 8771024: Making profile avatars and names sync. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Fixing nits, lint errors and adding comments. 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 typedef std::vector<ProfilePathAndName> ProfilePathAndNames; 257 typedef std::vector<ProfilePathAndName> ProfilePathAndNames;
258 ProfilePathAndNames GetSortedProfilesFromDirectoryMap(); 258 ProfilePathAndNames GetSortedProfilesFromDirectoryMap();
259 259
260 static bool CompareProfilePathAndName( 260 static bool CompareProfilePathAndName(
261 const ProfileManager::ProfilePathAndName& pair1, 261 const ProfileManager::ProfilePathAndName& pair1,
262 const ProfileManager::ProfilePathAndName& pair2); 262 const ProfileManager::ProfilePathAndName& pair2);
263 263
264 // Adds |profile| to the profile info cache if it hasn't been added yet. 264 // Adds |profile| to the profile info cache if it hasn't been added yet.
265 void AddProfileToCache(Profile* profile); 265 void AddProfileToCache(Profile* profile);
266 266
267 // Initializes user prefs of |profile|. This includes profile name and
268 // avatar values
269 void InitProfileUserPrefs(Profile* profile);
270
267 // For ChromeOS, determines if profile should be otr. 271 // For ChromeOS, determines if profile should be otr.
268 bool ShouldGoOffTheRecord(); 272 bool ShouldGoOffTheRecord();
269 273
270 // Get the path of the next profile directory and increment the internal 274 // Get the path of the next profile directory and increment the internal
271 // count. 275 // count.
272 // Lack of side effects: 276 // Lack of side effects:
273 // This function doesn't actually create the directory or touch the file 277 // This function doesn't actually create the directory or touch the file
274 // system. 278 // system.
275 FilePath GenerateNextProfileDirectoryPath(); 279 FilePath GenerateNextProfileDirectoryPath();
276 280
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 class ProfileManagerWithoutInit : public ProfileManager { 316 class ProfileManagerWithoutInit : public ProfileManager {
313 public: 317 public:
314 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 318 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
315 319
316 protected: 320 protected:
317 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 321 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
318 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 322 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
319 }; 323 };
320 324
321 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 325 #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