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

Issue 2078213002: [Media Router] Allow users to update cloud services pref when sync is not active. (Closed)

Created:
4 years, 6 months ago by apacible
Modified:
4 years, 6 months ago
Reviewers:
imcheng, Peter Kasting
CC:
chromium-reviews, media-router+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Allow users to update cloud services pref when sync is not active. There are two places users can update their cloud services pref: - First run flow, with a checkbox - Contextual menu, with a toggle Currently, users can only update their cloud services pref if they have sync enabled. There is no technical tie-in between having sync active and using cloud services. This change makes it such that users can toggle their cloud services pref locally if sync is inactive. Now, we only check that the user is authenticated. While sync is off, however, the pref will not sync across their devices. In the event where the user has already acknowledged the first run flow (locally on the profile), then turned on sync, we continue to enable cloud services. BUG=621255, 623330 Committed: https://crrev.com/19a9b8f1411afe64b2163261a04245f617e25e17 Cr-Commit-Position: refs/heads/master@{#402072}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changes per imcheng@'s comments. #

Patch Set 3 : Add basic unit tests. Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -22 lines) Patch
M chrome/browser/ui/toolbar/media_router_contextual_menu.cc View 1 2 chunks +4 lines, -11 lines 0 comments Download
A chrome/browser/ui/toolbar/media_router_contextual_menu_unittest.cc View 1 2 1 chunk +110 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 2 chunks +8 lines, -11 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
apacible
PTAL, thanks!
4 years, 6 months ago (2016-06-20 16:26:38 UTC) #5
Peter Kasting
LGTM. Should this have a unit test?
4 years, 6 months ago (2016-06-20 21:08:42 UTC) #6
imcheng
https://codereview.chromium.org/2078213002/diff/1/chrome/browser/ui/toolbar/media_router_contextual_menu.cc File chrome/browser/ui/toolbar/media_router_contextual_menu.cc (right): https://codereview.chromium.org/2078213002/diff/1/chrome/browser/ui/toolbar/media_router_contextual_menu.cc#newcode73 chrome/browser/ui/toolbar/media_router_contextual_menu.cc:73: if (browser_->profile()->IsSyncAllowed()) { Do we still need to check ...
4 years, 6 months ago (2016-06-20 21:29:03 UTC) #7
apacible
https://codereview.chromium.org/2078213002/diff/1/chrome/browser/ui/toolbar/media_router_contextual_menu.cc File chrome/browser/ui/toolbar/media_router_contextual_menu.cc (right): https://codereview.chromium.org/2078213002/diff/1/chrome/browser/ui/toolbar/media_router_contextual_menu.cc#newcode73 chrome/browser/ui/toolbar/media_router_contextual_menu.cc:73: if (browser_->profile()->IsSyncAllowed()) { On 2016/06/20 21:29:03, imcheng wrote: > ...
4 years, 6 months ago (2016-06-22 05:34:48 UTC) #8
imcheng
lgtm
4 years, 6 months ago (2016-06-22 17:22:46 UTC) #9
imcheng
+1 pkasting@'s comment on unit tests.
4 years, 6 months ago (2016-06-22 17:27:19 UTC) #10
apacible
On 2016/06/22 17:27:19, imcheng wrote: > +1 pkasting@'s comment on unit tests. Thanks! Missed the ...
4 years, 6 months ago (2016-06-22 18:08:24 UTC) #11
apacible
Updated with some basic tests for the contextual menu. I have some questions about writing ...
4 years, 6 months ago (2016-06-25 23:53:14 UTC) #19
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/2078213002/160001
4 years, 6 months ago (2016-06-25 23:53:43 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:160001)
4 years, 6 months ago (2016-06-25 23:57:34 UTC) #24
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/19a9b8f1411afe64b2163261a04245f617e25e17 Cr-Commit-Position: refs/heads/master@{#402072}
4 years, 6 months ago (2016-06-25 23:58:59 UTC) #26
apacible
4 years, 6 months ago (2016-06-26 00:20:51 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:160001) has been created in
https://codereview.chromium.org/2098193002/ by apacible@chromium.org.

The reason for reverting is: Caused failure on official bots..

Powered by Google App Engine
This is Rietveld 408576698