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

Issue 266233002: Add BackupRollbackController for starting backup/rollback (Closed)

Created:
6 years, 7 months ago by haitaol1
Modified:
6 years, 7 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

BackupRollbackController is notified when signin/sync status changed. It invokes given backup/rollback callbacks if conditions are met. BUG=362679 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270773

Patch Set 1 #

Total comments: 16

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -0 lines) Patch
A chrome/browser/sync/backup_rollback_controller.h View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/sync/backup_rollback_controller.cc View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/sync/backup_rollback_controller_unittest.cc View 1 2 1 chunk +170 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync_driver/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync_driver/pref_names.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync_driver/sync_prefs.h View 2 chunks +7 lines, -0 lines 0 comments Download
M components/sync_driver/sync_prefs.cc View 3 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
haitaol1
6 years, 7 months ago (2014-05-05 18:14:01 UTC) #1
Nicolas Zea
https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.cc File chrome/browser/sync/backup_rollback_controller.cc (right): https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.cc#newcode54 chrome/browser/sync/backup_rollback_controller.cc:54: sync_prefs_->SetRemainingRollbackTries(kRollbackLimits); Why do we have a limitted number of ...
6 years, 7 months ago (2014-05-06 18:54:08 UTC) #2
haitaol1
https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.cc File chrome/browser/sync/backup_rollback_controller.cc (right): https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.cc#newcode54 chrome/browser/sync/backup_rollback_controller.cc:54: sync_prefs_->SetRemainingRollbackTries(kRollbackLimits); It's not good to be stuck in rollback ...
6 years, 7 months ago (2014-05-07 21:34:17 UTC) #3
Nicolas Zea
https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.cc File chrome/browser/sync/backup_rollback_controller.cc (right): https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.cc#newcode54 chrome/browser/sync/backup_rollback_controller.cc:54: sync_prefs_->SetRemainingRollbackTries(kRollbackLimits); On 2014/05/07 21:34:17, haitaol1 wrote: > It's not ...
6 years, 7 months ago (2014-05-08 21:43:08 UTC) #4
haitaol1
https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.cc File chrome/browser/sync/backup_rollback_controller.cc (right): https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.cc#newcode54 chrome/browser/sync/backup_rollback_controller.cc:54: sync_prefs_->SetRemainingRollbackTries(kRollbackLimits); The user changes not in backup db will ...
6 years, 7 months ago (2014-05-09 16:55:57 UTC) #5
haitaol1
ping
6 years, 7 months ago (2014-05-13 16:23:28 UTC) #6
Nicolas Zea
https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.h File chrome/browser/sync/backup_rollback_controller.h (right): https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.h#newcode25 chrome/browser/sync/backup_rollback_controller.h:25: const ManagedUserSigninManagerWrapper* signin, The command to roll back in ...
6 years, 7 months ago (2014-05-13 17:39:10 UTC) #7
haitaol1
https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.h File chrome/browser/sync/backup_rollback_controller.h (right): https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.h#newcode25 chrome/browser/sync/backup_rollback_controller.h:25: const ManagedUserSigninManagerWrapper* signin, That's right. But we shouldn't start ...
6 years, 7 months ago (2014-05-13 18:08:22 UTC) #8
Nicolas Zea
LGTM https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.h File chrome/browser/sync/backup_rollback_controller.h (right): https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.h#newcode25 chrome/browser/sync/backup_rollback_controller.h:25: const ManagedUserSigninManagerWrapper* signin, Ah, now I understand. Could ...
6 years, 7 months ago (2014-05-14 23:17:56 UTC) #9
haitaol1
https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.h File chrome/browser/sync/backup_rollback_controller.h (right): https://codereview.chromium.org/266233002/diff/1/chrome/browser/sync/backup_rollback_controller.h#newcode25 chrome/browser/sync/backup_rollback_controller.h:25: const ManagedUserSigninManagerWrapper* signin, Commented on |signin_| in .h On ...
6 years, 7 months ago (2014-05-14 23:49:26 UTC) #10
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 7 months ago (2014-05-14 23:50:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/266233002/30001
6 years, 7 months ago (2014-05-14 23:53:52 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 02:20:37 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 02:33:44 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/142623)
6 years, 7 months ago (2014-05-15 02:33:45 UTC) #15
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 7 months ago (2014-05-15 16:30:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/266233002/50001
6 years, 7 months ago (2014-05-15 16:33:00 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-15 19:26:19 UTC) #18
Message was sent while issue was closed.
Change committed as 270773

Powered by Google App Engine
This is Rietveld 408576698