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

Issue 444763005: Clear a preference when sync tries to delete a preference (Closed)

Created:
6 years, 4 months ago by haitaol1
Modified:
6 years, 4 months ago
Reviewers:
gab, Nicolas Zea
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Clear a preference when sync tries to delete a preference Preference can be deleted during sync rollback if the preference was not set before first signin. Clear the preference if that happens. BUG=362679 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289048

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -27 lines) Patch
M chrome/browser/prefs/pref_model_associator.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/prefs/pref_model_associator.cc View 1 2 4 chunks +14 lines, -23 lines 0 comments Download
M chrome/browser/prefs/prefs_syncable_service_unittest.cc View 1 2 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
haitaol1
6 years, 4 months ago (2014-08-07 20:09:48 UTC) #1
gab
lg +Nicolas as I don't think I should be the sole reviewer on this since ...
6 years, 4 months ago (2014-08-08 12:55:43 UTC) #2
Nicolas Zea
https://codereview.chromium.org/444763005/diff/1/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): https://codereview.chromium.org/444763005/diff/1/chrome/browser/prefs/pref_model_associator.cc#newcode481 chrome/browser/prefs/pref_model_associator.cc:481: if (iter->change_type() != syncer::SyncChange::ACTION_DELETE && does the ACTION_DELETE condition ...
6 years, 4 months ago (2014-08-08 17:38:33 UTC) #3
haitaol1
On 2014/08/08 17:38:33, Nicolas Zea wrote: > https://codereview.chromium.org/444763005/diff/1/chrome/browser/prefs/pref_model_associator.cc > File chrome/browser/prefs/pref_model_associator.cc (right): > > https://codereview.chromium.org/444763005/diff/1/chrome/browser/prefs/pref_model_associator.cc#newcode481 ...
6 years, 4 months ago (2014-08-08 21:28:03 UTC) #4
haitaol1
Rearranged name/value handling to simplify for deletion. Also added test. PTAL
6 years, 4 months ago (2014-08-08 22:50:02 UTC) #5
Nicolas Zea
lgtm
6 years, 4 months ago (2014-08-08 23:19:07 UTC) #6
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 4 months ago (2014-08-10 16:10:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/444763005/40001
6 years, 4 months ago (2014-08-10 16:12:08 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-10 17:37:25 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-10 17:39:45 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/3228)
6 years, 4 months ago (2014-08-10 17:39:46 UTC) #11
haitaol1
gab@: can you LGTM?
6 years, 4 months ago (2014-08-11 16:26:18 UTC) #12
haitaol1
On 2014/08/11 16:26:18, haitaol1 wrote: > gab@: can you LGTM? ping
6 years, 4 months ago (2014-08-12 16:55:50 UTC) #13
gab
lgtm (sorry for the delay, I was OOO sick at the end of last week ...
6 years, 4 months ago (2014-08-12 17:00:44 UTC) #14
haitaol1
On 2014/08/12 17:00:44, gab wrote: > lgtm (sorry for the delay, I was OOO sick ...
6 years, 4 months ago (2014-08-12 19:20:05 UTC) #15
haitaol1
The CQ bit was checked by haitaol@chromium.org
6 years, 4 months ago (2014-08-12 19:20:11 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/444763005/40001
6 years, 4 months ago (2014-08-12 19:22:03 UTC) #17
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 19:28:32 UTC) #18
Message was sent while issue was closed.
Change committed as 289048

Powered by Google App Engine
This is Rietveld 408576698