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

Issue 10950032: Fix queued writes in DeviceSettingsProvider. (Closed)

Created:
8 years, 3 months ago by Mattias Nissler (ping if slow)
Modified:
8 years, 3 months ago
Reviewers:
pastarmovj
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Fix queued writes in DeviceSettingsProvider. The check for pending operations was bad, which would lead to pending changes accumulating. Props to pastarmovj for debugging this and proposing the fix. BUG=chromium:149983 TEST=unit tests, see bug report. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157961

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove redundant EXPECT_CALL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -4 lines) Patch
M chrome/browser/chromeos/settings/device_settings_provider.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider_unittest.cc View 1 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mattias Nissler (ping if slow)
Julian, your CL was actually exactly correct, the check should have been only on the ...
8 years, 3 months ago (2012-09-19 17:48:21 UTC) #1
pastarmovj
LGTM with a nit on the test. http://codereview.chromium.org/10950032/diff/1/chrome/browser/chromeos/settings/device_settings_provider_unittest.cc File chrome/browser/chromeos/settings/device_settings_provider_unittest.cc (right): http://codereview.chromium.org/10950032/diff/1/chrome/browser/chromeos/settings/device_settings_provider_unittest.cc#newcode213 chrome/browser/chromeos/settings/device_settings_provider_unittest.cc:213: EXPECT_CALL(*this, SettingChanged(_)).Times(AnyNumber()); ...
8 years, 3 months ago (2012-09-20 08:30:07 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/10950032/diff/1/chrome/browser/chromeos/settings/device_settings_provider_unittest.cc File chrome/browser/chromeos/settings/device_settings_provider_unittest.cc (right): https://codereview.chromium.org/10950032/diff/1/chrome/browser/chromeos/settings/device_settings_provider_unittest.cc#newcode213 chrome/browser/chromeos/settings/device_settings_provider_unittest.cc:213: EXPECT_CALL(*this, SettingChanged(_)).Times(AnyNumber()); On 2012/09/20 08:30:07, pastarmovj wrote: > If ...
8 years, 3 months ago (2012-09-20 09:47:01 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10950032/6001
8 years, 3 months ago (2012-09-20 09:47:15 UTC) #4
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 3 months ago (2012-09-20 18:39:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10950032/6001
8 years, 3 months ago (2012-09-20 22:17:29 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-20 23:41:17 UTC) #7
commit-bot: I haz the power
8 years, 3 months ago (2012-09-21 07:05:29 UTC) #8

Powered by Google App Engine
This is Rietveld 408576698