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

Issue 709763002: Fixed merge of device settings. (Closed)

Created:
6 years, 1 month ago by ygorshenin1
Modified:
6 years, 1 month ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fixed merge of device settings. BUG=430042 TEST=manual tests on a falco device

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -4 lines) Patch
M chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc View 2 chunks +128 lines, -4 lines 3 comments Download

Messages

Total messages: 4 (1 generated)
ygorshenin1
6 years, 1 month ago (2014-11-07 14:15:15 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/709763002/diff/1/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc File chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc (right): https://codereview.chromium.org/709763002/diff/1/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc#newcode215 chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc:215: template <template <typename> class R, typename E> Could use ...
6 years, 1 month ago (2014-11-07 16:07:36 UTC) #3
ygorshenin1
6 years, 1 month ago (2014-11-07 17:24:32 UTC) #4
https://codereview.chromium.org/709763002/diff/1/chrome/browser/chromeos/owne...
File chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc
(right):

https://codereview.chromium.org/709763002/diff/1/chrome/browser/chromeos/owne...
chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc:228:
*to->Add() = f;
On 2014/11/07 16:07:35, Mattias Nissler wrote:
> If merging only ever adds fields, how would I actually remove an entry from a
> list? If I'm not mistaken, updating for example the user whitelist by removing
> an entry will actually trigger a full write of the list - the expectation is
> that the data in device settings will be replaced by this new version of the
> list instead of being merged. Am I missing something?

You're right, it's impossible to remove values from a list. It seems that that
solution doesn't work. I think it's better to implement a key-value storage in
OwnerSettingsService for pending changes. I'll upload a changelist for your
review soon.

Powered by Google App Engine
This is Rietveld 408576698