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

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

Issue 12225046: [cros] Set profile pref for locally managed users (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize pref on Profile::CREATE_STATUS_CREATED cb Created 7 years, 10 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 9
10 #include <list> 10 #include <list>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // immediately. Should be called on the UI thread. 76 // immediately. Should be called on the UI thread.
77 void CreateProfileAsync(const FilePath& profile_path, 77 void CreateProfileAsync(const FilePath& profile_path,
78 const CreateCallback& callback, 78 const CreateCallback& callback,
79 const string16& name, 79 const string16& name,
80 const string16& icon_url, 80 const string16& icon_url,
81 bool is_managed); 81 bool is_managed);
82 82
83 // Initiates default profile creation. If default profile has already been 83 // Initiates default profile creation. If default profile has already been
84 // created then the callback is called immediately. Should be called on the 84 // created then the callback is called immediately. Should be called on the
85 // UI thread. 85 // UI thread.
86 static void CreateDefaultProfileAsync(const CreateCallback& callback); 86 static void CreateDefaultProfileAsync(const CreateCallback& callback,
87 bool is_managed);
87 88
88 // Returns true if the profile pointer is known to point to an existing 89 // Returns true if the profile pointer is known to point to an existing
89 // profile. 90 // profile.
90 bool IsValidProfile(Profile* profile); 91 bool IsValidProfile(Profile* profile);
91 92
92 // Returns the directory where the first created profile is stored, 93 // Returns the directory where the first created profile is stored,
93 // relative to the user data directory currently in use.. 94 // relative to the user data directory currently in use..
94 FilePath GetInitialProfileDir(); 95 FilePath GetInitialProfileDir();
95 96
96 // Get the Profile last used (the Profile to which owns the most recently 97 // Get the Profile last used (the Profile to which owns the most recently
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 class ProfileManagerWithoutInit : public ProfileManager { 362 class ProfileManagerWithoutInit : public ProfileManager {
362 public: 363 public:
363 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 364 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
364 365
365 protected: 366 protected:
366 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 367 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
367 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 368 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
368 }; 369 };
369 370
370 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 371 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698