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

Issue 1313213005: Turn VariationsService::GetVariationsServerURL into instance method (Closed)

Created:
5 years, 3 months ago by blundell
Modified:
5 years, 3 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Turn VariationsService::GetVariationsServerURL into instance method This will allow for followup work that uses |client_| within that method. Reland of https://codereview.chromium.org/1309843005 with the browsertests fixed to remove the unsafe accesses to g_browser_process->variations_service(). BUG=516678 Committed: https://crrev.com/dcc53f65eb04018ca60b077a55aa5923ac5e8e9c Cr-Commit-Position: refs/heads/master@{#346878}

Patch Set 1 #

Patch Set 2 : Use locally-constructed VariationsService in browsertests #

Total comments: 6

Patch Set 3 : Response to review #

Total comments: 6

Patch Set 4 : Response to review #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -44 lines) Patch
M chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/metrics/variations/variations_service.h View 1 2 3 chunks +15 lines, -10 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service.cc View 1 2 4 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/metrics/variations/variations_service_unittest.cc View 1 2 10 chunks +38 lines, -25 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 3 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
blundell
This is a reland that avoids the problem of the browsertests using a null VariationsService. ...
5 years, 3 months ago (2015-08-31 12:06:41 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/1313213005/diff/40001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/1313213005/diff/40001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode51 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:51: g_browser_process->local_state(), nullptr), It's pretty weird that with the change ...
5 years, 3 months ago (2015-08-31 15:03:03 UTC) #4
blundell
https://codereview.chromium.org/1313213005/diff/40001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/1313213005/diff/40001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode51 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:51: g_browser_process->local_state(), nullptr), On 2015/08/31 15:03:02, Alexei Svitkine wrote: > ...
5 years, 3 months ago (2015-09-01 10:03:06 UTC) #7
Alexei Svitkine (slow)
lgtm
5 years, 3 months ago (2015-09-01 14:50:26 UTC) #8
bartfab (slow)
chrome/browser/policy/* chrome/browser/chromeos/policy/* LGTM https://codereview.chromium.org/1313213005/diff/100001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/1313213005/diff/100001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode47 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:47: scoped_ptr<chrome_variations::VariationsService> service = Nit: #include "base/memory/scoped_ptr.h" ...
5 years, 3 months ago (2015-09-02 09:57:29 UTC) #9
blundell
https://codereview.chromium.org/1313213005/diff/100001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc File chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc (right): https://codereview.chromium.org/1313213005/diff/100001/chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc#newcode47 chrome/browser/chromeos/policy/variations_service_policy_browsertest.cc:47: scoped_ptr<chrome_variations::VariationsService> service = On 2015/09/02 09:57:29, bartfab wrote: > ...
5 years, 3 months ago (2015-09-02 10:02:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313213005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313213005/140001
5 years, 3 months ago (2015-09-02 10:03:42 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 3 months ago (2015-09-02 10:33:27 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/dcc53f65eb04018ca60b077a55aa5923ac5e8e9c Cr-Commit-Position: refs/heads/master@{#346878}
5 years, 3 months ago (2015-09-02 10:34:04 UTC) #15
blundell
5 years, 3 months ago (2015-09-02 11:23:23 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:140001) has been created in
https://codereview.chromium.org/1306913003/ by blundell@chromium.org.

The reason for reverting is: Gak! The CreateForTesting method can't call the
Create method because the latter returns null in non-official builds -- exactly
the problem from the original CL :P. I don't understand why this CL passed
trybots..

Powered by Google App Engine
This is Rietveld 408576698