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

Side by Side Diff: chrome/browser/sync/engine/syncapi.cc

Issue 2923006: Handle birthday errors by disabling sync and deleting sync data. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/sync/engine/syncapi.h ('k') | chrome/browser/sync/engine/syncer_proto_util.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/sync/engine/syncapi.h" 5 #include "chrome/browser/sync/engine/syncapi.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <iomanip> 9 #include <iomanip>
10 #include <list> 10 #include <list>
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1862 1862
1863 if (event.what_happened == SyncerEvent::PAUSED) { 1863 if (event.what_happened == SyncerEvent::PAUSED) {
1864 observer_->OnPaused(); 1864 observer_->OnPaused();
1865 return; 1865 return;
1866 } 1866 }
1867 1867
1868 if (event.what_happened == SyncerEvent::RESUMED) { 1868 if (event.what_happened == SyncerEvent::RESUMED) {
1869 observer_->OnResumed(); 1869 observer_->OnResumed();
1870 return; 1870 return;
1871 } 1871 }
1872
1873 if (event.what_happened == SyncerEvent::STOP_SYNCING_PERMANENTLY) {
1874 observer_->OnStopSyncingPermanently();
1875 return;
1876 }
1872 } 1877 }
1873 1878
1874 void SyncManager::SyncInternal::HandleAuthWatcherEvent( 1879 void SyncManager::SyncInternal::HandleAuthWatcherEvent(
1875 const AuthWatcherEvent& event) { 1880 const AuthWatcherEvent& event) {
1876 allstatus_.HandleAuthWatcherEvent(event); 1881 allstatus_.HandleAuthWatcherEvent(event);
1877 // We don't care about an authentication attempt starting event, and we 1882 // We don't care about an authentication attempt starting event, and we
1878 // don't want to reset our state to GoogleServiceAuthError::NONE because the 1883 // don't want to reset our state to GoogleServiceAuthError::NONE because the
1879 // fact that an _attempt_ is starting doesn't change the fact that we have an 1884 // fact that an _attempt_ is starting doesn't change the fact that we have an
1880 // auth problem. 1885 // auth problem.
1881 if (event.what_happened == AuthWatcherEvent::AUTHENTICATION_ATTEMPT_START) 1886 if (event.what_happened == AuthWatcherEvent::AUTHENTICATION_ATTEMPT_START)
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 BaseTransaction::~BaseTransaction() { 2114 BaseTransaction::~BaseTransaction() {
2110 delete lookup_; 2115 delete lookup_;
2111 } 2116 }
2112 2117
2113 UserShare* SyncManager::GetUserShare() const { 2118 UserShare* SyncManager::GetUserShare() const {
2114 DCHECK(data_->initialized()) << "GetUserShare requires initialization!"; 2119 DCHECK(data_->initialized()) << "GetUserShare requires initialization!";
2115 return data_->GetUserShare(); 2120 return data_->GetUserShare();
2116 } 2121 }
2117 2122
2118 } // namespace sync_api 2123 } // namespace sync_api
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncapi.h ('k') | chrome/browser/sync/engine/syncer_proto_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698