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

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

Issue 465113002: Revert 288557 "[Sync] Use OnSingleDataTypeUnrecoverableError for..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 #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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 // Returns whether sync is managed, i.e. controlled by configuration 552 // Returns whether sync is managed, i.e. controlled by configuration
553 // management. If so, the user is not allowed to configure sync. 553 // management. If so, the user is not allowed to configure sync.
554 virtual bool IsManaged() const; 554 virtual bool IsManaged() const;
555 555
556 // syncer::UnrecoverableErrorHandler implementation. 556 // syncer::UnrecoverableErrorHandler implementation.
557 virtual void OnUnrecoverableError( 557 virtual void OnUnrecoverableError(
558 const tracked_objects::Location& from_here, 558 const tracked_objects::Location& from_here,
559 const std::string& message) OVERRIDE; 559 const std::string& message) OVERRIDE;
560 560
561 // Called when a datatype wishes to disable itself. The datatype to be
562 // disabled is passed via |error.model_type()|. Note, this does not change
563 // preferred state of a datatype and is not persisted across restarts.
564 virtual void DisableDatatype(const syncer::SyncError& error);
565
561 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does 566 // Called to re-enable a type disabled by DisableDatatype(..). Note, this does
562 // not change the preferred state of a datatype, and is not persisted across 567 // not change the preferred state of a datatype, and is not persisted across
563 // restarts. 568 // restarts.
564 void ReenableDatatype(syncer::ModelType type); 569 void ReenableDatatype(syncer::ModelType type);
565 570
566 // The functions below (until ActivateDataType()) should only be 571 // The functions below (until ActivateDataType()) should only be
567 // called if sync_initialized() is true. 572 // called if sync_initialized() is true.
568 573
569 // TODO(akalin): This is called mostly by ModelAssociators and 574 // TODO(akalin): This is called mostly by ModelAssociators and
570 // tests. Figure out how to pass the handle to the ModelAssociators 575 // tests. Figure out how to pass the handle to the ModelAssociators
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 scoped_ptr<base::Time> last_backup_time_; 1152 scoped_ptr<base::Time> last_backup_time_;
1148 1153
1149 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1154 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1150 }; 1155 };
1151 1156
1152 bool ShouldShowActionOnUI( 1157 bool ShouldShowActionOnUI(
1153 const syncer::SyncProtocolError& error); 1158 const syncer::SyncProtocolError& error);
1154 1159
1155 1160
1156 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1161 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698