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

Side by Side Diff: chrome/browser/sync/backup_rollback_controller.cc

Issue 1308313003: Componentize chrome/common/sync_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/backup_rollback_controller.h" 5 #include "chrome/browser/sync/backup_rollback_controller.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "base/thread_task_runner_handle.h" 11 #include "base/thread_task_runner_handle.h"
12 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" 12 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "components/sync_driver/sync_driver_switches.h"
14 #include "components/sync_driver/sync_prefs.h" 15 #include "components/sync_driver/sync_prefs.h"
15 16
16 namespace browser_sync { 17 namespace browser_sync {
17 18
18 #if defined(ENABLE_PRE_SYNC_BACKUP) 19 #if defined(ENABLE_PRE_SYNC_BACKUP)
19 // Number of rollback attempts to try before giving up. 20 // Number of rollback attempts to try before giving up.
20 static const int kRollbackLimits = 3; 21 static const int kRollbackLimits = 3;
21 22
22 // Finch experiment name and group. 23 // Finch experiment name and group.
23 static char kSyncBackupFinchName[] = "SyncBackup"; 24 static char kSyncBackupFinchName[] = "SyncBackup";
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 group_name == kSyncBackupFinchDisabled) { 94 group_name == kSyncBackupFinchDisabled) {
94 return false; 95 return false;
95 } 96 }
96 return true; 97 return true;
97 #else 98 #else
98 return false; 99 return false;
99 #endif 100 #endif
100 } 101 }
101 102
102 } // namespace browser_sync 103 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/gcm_desktop_utils.cc ('k') | chrome/browser/sync/backup_rollback_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698