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

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

Issue 12088040: Add a SigninAllowed policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extract managed user specific stuff into another changelist. 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 gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 } 344 }
345 345
346 bool ShouldSendAccessibilityEvents() { 346 bool ShouldSendAccessibilityEvents() {
347 return 0 == accessibility_pause_level_; 347 return 0 == accessibility_pause_level_;
348 } 348 }
349 349
350 // Checks whether sync is configurable by the user. Returns false if sync is 350 // Checks whether sync is configurable by the user. Returns false if sync is
351 // disabled or controlled by configuration management. 351 // disabled or controlled by configuration management.
352 bool IsSyncAccessible(); 352 bool IsSyncAccessible();
353 353
354 // Checks whether signin to Chrome is allowed by the user. Returns false if
355 // signin is disabled or controlled by configuration management.
356 bool IsSigninAllowed();
sail 2013/02/08 20:18:57 Could we avoid adding this here? chrome/browser/si
Adrian Kuegel 2013/02/11 16:47:30 Yes, it can be avoided, it was just making the cod
357
354 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not 358 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not
355 // already been sent. It is necessary because most Profiles are destroyed by 359 // already been sent. It is necessary because most Profiles are destroyed by
356 // ProfileDestroyer, but in tests, some are not. 360 // ProfileDestroyer, but in tests, some are not.
357 void MaybeSendDestroyedNotification(); 361 void MaybeSendDestroyedNotification();
358 362
359 // Creates an OffTheRecordProfile which points to this Profile. 363 // Creates an OffTheRecordProfile which points to this Profile.
360 Profile* CreateOffTheRecordProfile(); 364 Profile* CreateOffTheRecordProfile();
361 365
362 protected: 366 protected:
363 // TODO(erg, willchan): Remove friendship once |ProfileIOData| is made into 367 // TODO(erg, willchan): Remove friendship once |ProfileIOData| is made into
(...skipping 21 matching lines...) Expand all
385 struct hash<Profile*> { 389 struct hash<Profile*> {
386 std::size_t operator()(Profile* const& p) const { 390 std::size_t operator()(Profile* const& p) const {
387 return reinterpret_cast<std::size_t>(p); 391 return reinterpret_cast<std::size_t>(p);
388 } 392 }
389 }; 393 };
390 394
391 } // namespace BASE_HASH_NAMESPACE 395 } // namespace BASE_HASH_NAMESPACE
392 #endif 396 #endif
393 397
394 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 398 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698