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

Side by Side Diff: components/browser_sync/profile_sync_service.cc

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 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
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 #include "components/browser_sync/profile_sync_service.h" 5 #include "components/browser_sync/profile_sync_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cstddef> 9 #include <cstddef>
10 #include <map> 10 #include <map>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 using syncer::ProtocolEventObserver; 109 using syncer::ProtocolEventObserver;
110 using syncer::SyncEngine; 110 using syncer::SyncEngine;
111 using syncer::SyncCredentials; 111 using syncer::SyncCredentials;
112 using syncer::SyncProtocolError; 112 using syncer::SyncProtocolError;
113 using syncer::WeakHandle; 113 using syncer::WeakHandle;
114 114
115 namespace browser_sync { 115 namespace browser_sync {
116 116
117 namespace { 117 namespace {
118 118
119 typedef GoogleServiceAuthError AuthError; 119 using AuthError = GoogleServiceAuthError;
120 120
121 const char kSyncUnrecoverableErrorHistogram[] = "Sync.UnrecoverableErrors"; 121 const char kSyncUnrecoverableErrorHistogram[] = "Sync.UnrecoverableErrors";
122 122
123 const net::BackoffEntry::Policy kRequestAccessTokenBackoffPolicy = { 123 const net::BackoffEntry::Policy kRequestAccessTokenBackoffPolicy = {
124 // Number of initial errors (in sequence) to ignore before applying 124 // Number of initial errors (in sequence) to ignore before applying
125 // exponential back-off rules. 125 // exponential back-off rules.
126 0, 126 0,
127 127
128 // Initial delay for exponential back-off in ms. 128 // Initial delay for exponential back-off in ms.
129 2000, 129 2000,
(...skipping 2290 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 2420
2421 DCHECK(startup_controller_->IsSetupInProgress()); 2421 DCHECK(startup_controller_->IsSetupInProgress());
2422 startup_controller_->SetSetupInProgress(false); 2422 startup_controller_->SetSetupInProgress(false);
2423 2423
2424 if (IsEngineInitialized()) 2424 if (IsEngineInitialized())
2425 ReconfigureDatatypeManager(); 2425 ReconfigureDatatypeManager();
2426 NotifyObservers(); 2426 NotifyObservers();
2427 } 2427 }
2428 2428
2429 } // namespace browser_sync 2429 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_service.h ('k') | components/browser_sync/profile_sync_service_bookmark_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698