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

Issue 2793393002: CrOS settings/metrics: Correctly store Subscriptions (Closed)

Created:
3 years, 8 months ago by stevenjb
Modified:
3 years, 8 months ago
Reviewers:
Dan Beam, Steven Holte
CC:
chromium-reviews, asvitkine+watch_chromium.org, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CrOS settings/metrics: Correctly store Subscriptions Currently we do not store the Subscription for two CrosSettings observers. This CL: * Adds WARN_UNUSED_RESULT to catch this in the compiler. * Moves the chromeos::kStatsReportingPref observer code from metrics_reporting_state.cc to ChromeMetricsServicesManagerClient * Stores the Subscription for chromeos::kStatsReportingPref in ChromeMetricsServicesManagerClient. * Stores the Subscription for chromeos::kSystemTimezonePolicy in BrowserOptionsHander. BUG=706920 Review-Url: https://codereview.chromium.org/2793393002 Cr-Commit-Position: refs/heads/master@{#462108} Committed: https://chromium.googlesource.com/chromium/src/+/43c11caa73ca39e4d71f295b54abd7784a143d94

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -40 lines) Patch
M chrome/browser/chromeos/settings/cros_settings.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_services_manager_client.h View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_services_manager_client.cc View 1 3 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_reporting_state.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/metrics/metrics_reporting_state.cc View 3 chunks +0 lines, -28 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
stevenjb
3 years, 8 months ago (2017-04-04 17:58:52 UTC) #2
Steven Holte
lgtm
3 years, 8 months ago (2017-04-04 23:02:23 UTC) #3
Dan Beam
i would argue we might not want to fix /options/, or that we should doc ...
3 years, 8 months ago (2017-04-05 03:11:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2793393002/20001
3 years, 8 months ago (2017-04-05 16:27:04 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/43c11caa73ca39e4d71f295b54abd7784a143d94
3 years, 8 months ago (2017-04-05 16:35:43 UTC) #13
stevenjb
3 years, 8 months ago (2017-04-05 17:18:08 UTC) #14
Message was sent while issue was closed.
The options fix by the way was something else entirely; the symptom would
be timezone settings not receiving updates. This was caught by the added
compiler warning and needed to be fixed to remove the warning.


On Tue, Apr 4, 2017 at 8:11 PM, <dbeam@chromium.org> wrote:

> i would argue we might not want to fix /options/, or that we should doc the
> member you're adding there, but i really don't care much about /options/
> at this
> point
>
> lgtm, thanks for fixing!
>
> https://codereview.chromium.org/2793393002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698