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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows sync integration test failure 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
« no previous file with comments | « chrome/browser/signin/signin_ui_util.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Returns whether sync is enabled. Sync can be enabled/disabled both 398 // Returns whether sync is enabled. Sync can be enabled/disabled both
399 // at compile time (e.g., on a per-OS basis) or at run time (e.g., 399 // at compile time (e.g., on a per-OS basis) or at run time (e.g.,
400 // command-line switches). 400 // command-line switches).
401 // Profile::IsSyncAccessible() is probably a better signal than this function. 401 // Profile::IsSyncAccessible() is probably a better signal than this function.
402 // This function can be called from any thread, and the implementation doesn't 402 // This function can be called from any thread, and the implementation doesn't
403 // assume it's running on the UI thread. 403 // assume it's running on the UI thread.
404 static bool IsSyncEnabled(); 404 static bool IsSyncEnabled();
405 405
406 // Returns whether sync is managed, i.e. controlled by configuration 406 // Returns whether sync is managed, i.e. controlled by configuration
407 // management. If so, the user is not allowed to configure sync. 407 // management. If so, the user is not allowed to configure sync.
408 bool IsManaged() const; 408 virtual bool IsManaged() const;
409 409
410 // SigninGlobalError::AuthStatusProvider implementation. 410 // SigninGlobalError::AuthStatusProvider implementation.
411 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; 411 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE;
412 412
413 // syncer::UnrecoverableErrorHandler implementation. 413 // syncer::UnrecoverableErrorHandler implementation.
414 virtual void OnUnrecoverableError( 414 virtual void OnUnrecoverableError(
415 const tracked_objects::Location& from_here, 415 const tracked_objects::Location& from_here,
416 const std::string& message) OVERRIDE; 416 const std::string& message) OVERRIDE;
417 417
418 // Called when a datatype wishes to disable itself due to having hit an 418 // Called when a datatype wishes to disable itself due to having hit an
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 903 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
904 904
905 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 905 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
906 }; 906 };
907 907
908 bool ShouldShowActionOnUI( 908 bool ShouldShowActionOnUI(
909 const syncer::SyncProtocolError& error); 909 const syncer::SyncProtocolError& error);
910 910
911 911
912 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 912 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_ui_util.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698