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

Side by Side Diff: chrome/browser/managed_mode/managed_user_registration_service.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_SERVICE_H_
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_SERVICE_H_ 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // ProfileDownloaderDelegate: 66 // ProfileDownloaderDelegate:
67 virtual bool NeedsProfilePicture() const OVERRIDE; 67 virtual bool NeedsProfilePicture() const OVERRIDE;
68 virtual int GetDesiredImageSideLength() const OVERRIDE; 68 virtual int GetDesiredImageSideLength() const OVERRIDE;
69 virtual std::string GetCachedPictureURL() const OVERRIDE; 69 virtual std::string GetCachedPictureURL() const OVERRIDE;
70 virtual Profile* GetBrowserProfile() OVERRIDE; 70 virtual Profile* GetBrowserProfile() OVERRIDE;
71 virtual void OnProfileDownloadSuccess(ProfileDownloader* downloader) OVERRIDE; 71 virtual void OnProfileDownloadSuccess(ProfileDownloader* downloader) OVERRIDE;
72 virtual void OnProfileDownloadFailure( 72 virtual void OnProfileDownloadFailure(
73 ProfileDownloader* downloader, 73 ProfileDownloader* downloader,
74 ProfileDownloaderDelegate::FailureReason reason) OVERRIDE; 74 ProfileDownloaderDelegate::FailureReason reason) OVERRIDE;
75 75
76 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 76 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
77 77
78 // Registers a new managed user with the server. |info| contains necessary 78 // Registers a new managed user with the server. |info| contains necessary
79 // information like the display name of the the user. |callback| is called 79 // information like the display name of the the user. |callback| is called
80 // with the result of the registration. We use the info here and not the 80 // with the result of the registration. We use the info here and not the
81 // profile, because on Chrome OS the profile of the managed user does 81 // profile, because on Chrome OS the profile of the managed user does
82 // not yet exist. 82 // not yet exist.
83 void Register(const ManagedUserRegistrationInfo& info, 83 void Register(const ManagedUserRegistrationInfo& info,
84 const RegistrationCallback& callback); 84 const RegistrationCallback& callback);
85 85
86 // Downloads the GAIA account information for the |profile|. This is a best- 86 // Downloads the GAIA account information for the |profile|. This is a best-
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 RegistrationCallback callback_; 159 RegistrationCallback callback_;
160 160
161 Profile* download_profile_; 161 Profile* download_profile_;
162 scoped_ptr<ProfileDownloader> profile_downloader_; 162 scoped_ptr<ProfileDownloader> profile_downloader_;
163 DownloadProfileCallback download_callback_; 163 DownloadProfileCallback download_callback_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(ManagedUserRegistrationService); 165 DISALLOW_COPY_AND_ASSIGN(ManagedUserRegistrationService);
166 }; 166 };
167 167
168 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_SERVICE_H_ 168 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_REGISTRATION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698