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

Issue 14268009: Support VariationsRestrictParameter in VariationsService for Chrome OS (Closed)

Created:
7 years, 8 months ago by Mathieu
Modified:
7 years, 8 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things)
Visibility:
Public.

Description

When determining the Variations server URL, get VariationsRestrictParameter from Chrome OS Settings in the case of Chrome OS. BUG=232881 TEST=VariationsServiceTest unit test, VariationsServiceDevicePolicyTest browser test Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195533

Patch Set 1 #

Total comments: 13

Patch Set 2 : Browsertest + comments #

Total comments: 13

Patch Set 3 : Comments #

Total comments: 8

Patch Set 4 : Browser tests refactored #

Total comments: 6

Patch Set 5 : More loosely coupled #

Patch Set 6 : Missing files #

Patch Set 7 : Added TODO about MockImageBurnerClient #

Total comments: 24

Patch Set 8 : Nits #

Patch Set 9 : fixed a test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -101 lines) Patch
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 4 5 6 7 12 chunks +15 lines, -79 lines 0 comments Download
A chrome/browser/chromeos/policy/device_policy_cros_browser_test.h View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc View 1 2 3 4 5 6 7 1 chunk +89 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -8 lines 0 comments Download
chrome/browser/metrics/variations/variations_service_unittest.cc View 1 2 3 15 chunks +84 lines, -14 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Mathieu
Hi all, This is the feature code for the Chrome OS setting I've added in ...
7 years, 8 months ago (2013-04-17 20:49:07 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/14268009/diff/1/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (left): https://codereview.chromium.org/14268009/diff/1/chrome/browser/metrics/variations/variations_service.cc#oldcode214 chrome/browser/metrics/variations/variations_service.cc:214: if (local_state) { I think you previously had this ...
7 years, 8 months ago (2013-04-17 21:24:36 UTC) #2
Mattias Nissler (ping if slow)
LGTM with nits https://codereview.chromium.org/14268009/diff/1/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (right): https://codereview.chromium.org/14268009/diff/1/chrome/browser/metrics/variations/variations_service.cc#newcode125 chrome/browser/metrics/variations/variations_service.cc:125: #if defined(OS_CHROMEOS) You might want to ...
7 years, 8 months ago (2013-04-18 10:39:38 UTC) #3
Mattias Nissler (ping if slow)
On 2013/04/17 20:49:07, Mathieu Perreault wrote: > Hi all, > > This is the feature ...
7 years, 8 months ago (2013-04-18 10:47:11 UTC) #4
Mathieu
Thanks! mnissler: Please have a look at the new browsertest :) https://codereview.chromium.org/14268009/diff/1/chrome/browser/metrics/variations/variations_service.cc File chrome/browser/metrics/variations/variations_service.cc (left): ...
7 years, 8 months ago (2013-04-18 19:17:19 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/14268009/diff/7001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/14268009/diff/7001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode29 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:29: namespace em = enterprise_management; You're only using em:: once ...
7 years, 8 months ago (2013-04-18 19:27:53 UTC) #6
Mathieu
Thanks! https://codereview.chromium.org/14268009/diff/7001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/14268009/diff/7001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode29 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:29: namespace em = enterprise_management; On 2013/04/18 19:27:53, Alexei ...
7 years, 8 months ago (2013-04-18 19:51:14 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/14268009/diff/7001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/14268009/diff/7001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode77 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:77: } On 2013/04/18 19:51:14, Mathieu Perreault wrote: > On ...
7 years, 8 months ago (2013-04-18 20:01:27 UTC) #8
Mattias Nissler (ping if slow)
I agree with Alexei that it makes sense to create a base class that provides ...
7 years, 8 months ago (2013-04-19 10:37:00 UTC) #9
satorux1
https://codereview.chromium.org/14268009/diff/13001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/14268009/diff/13001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode45 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:45: .Times(AnyNumber()); On 2013/04/19 10:37:00, Mattias Nissler wrote: > I ...
7 years, 8 months ago (2013-04-19 11:46:20 UTC) #10
satorux1
https://codereview.chromium.org/14268009/diff/13001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/14268009/diff/13001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode45 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:45: .Times(AnyNumber()); On 2013/04/19 11:46:20, satorux1 wrote: > On 2013/04/19 ...
7 years, 8 months ago (2013-04-19 12:04:13 UTC) #11
Mathieu
Created a common class for the browsertest. Please have a look. https://codereview.chromium.org/14268009/diff/13001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): ...
7 years, 8 months ago (2013-04-19 17:58:24 UTC) #12
Alexei Svitkine (slow)
Thanks for the refactoring! In addition to what we chatted about offline, here's a few ...
7 years, 8 months ago (2013-04-19 18:11:55 UTC) #13
Mathieu
Thanks! https://codereview.chromium.org/14268009/diff/24001/chrome/browser/chromeos/policy/device_policy_cros_browsertest.h File chrome/browser/chromeos/policy/device_policy_cros_browsertest.h (right): https://codereview.chromium.org/14268009/diff/24001/chrome/browser/chromeos/policy/device_policy_cros_browsertest.h#newcode5 chrome/browser/chromeos/policy/device_policy_cros_browsertest.h:5: #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_POLICY_CROS_BROWSERTEST_H_ On 2013/04/19 18:11:55, Alexei Svitkine wrote: ...
7 years, 8 months ago (2013-04-19 18:37:31 UTC) #14
Alexei Svitkine (slow)
LGTM!
7 years, 8 months ago (2013-04-19 18:44:16 UTC) #15
Mathieu
satorux: Please take a look at the login/ part for OWNERS approval.
7 years, 8 months ago (2013-04-19 18:51:36 UTC) #16
satorux1
chrome/browser/chromeos/login/ lgtm https://codereview.chromium.org/14268009/diff/13001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/14268009/diff/13001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode45 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:45: .Times(AnyNumber()); On 2013/04/19 17:58:25, Mathieu Perreault wrote: ...
7 years, 8 months ago (2013-04-22 01:04:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/14268009/24002
7 years, 8 months ago (2013-04-22 02:57:56 UTC) #18
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=120204
7 years, 8 months ago (2013-04-22 03:24:15 UTC) #19
Mattias Nissler (ping if slow)
Thanks for splitting out the test support code. LGTM after fixing the nits. https://codereview.chromium.org/14268009/diff/24002/chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc File ...
7 years, 8 months ago (2013-04-22 10:07:43 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/14268009/46002
7 years, 8 months ago (2013-04-22 14:12:29 UTC) #21
Mathieu
Thanks! https://codereview.chromium.org/14268009/diff/24002/chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc File chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc (right): https://codereview.chromium.org/14268009/diff/24002/chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc#newcode16 chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc:16: #include "chromeos/dbus/fake_session_manager_client.h" On 2013/04/22 10:07:43, Mattias Nissler wrote: ...
7 years, 8 months ago (2013-04-22 14:14:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/14268009/51004
7 years, 8 months ago (2013-04-22 14:37:51 UTC) #23
commit-bot: I haz the power
7 years, 8 months ago (2013-04-22 16:42:00 UTC) #24
Message was sent while issue was closed.
Change committed as 195533

Powered by Google App Engine
This is Rietveld 408576698