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

Issue 10108026: Transmit a X-Chrome-UMA-Enabled bit to Google domains from clients that have UMA enabled. (Closed)

Created:
8 years, 8 months ago by SteveT
Modified:
8 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, MAD, Ilya Sherman, jar (doing other things), cbentzel+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Transmit a X-Chrome-UMA-Enabled bit to Google domains from clients that have UMA enabled. This requires a change to the ChromeNetworkDelegate where we feed the incognito state (a bool) into the object at creation time, so we can check that field when doing our header setting. BUG=123609 TEST=With UMA enabled (not Chromium), visit www.google.com and ensure that the request header includes X-Chrome-UMA-Enabled with value "1". Ensure that disabling UMA also disables the transmission of this header entirely. Also, ensure that unit_tests GoogleUtilTests all pass. TBR=ivankr@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134625

Patch Set 1 #

Patch Set 2 : Made threading fixes #

Total comments: 4

Patch Set 3 : fix web_request_api_unittest #

Patch Set 4 : MAD comment #

Total comments: 12

Patch Set 5 : additional host tests #

Patch Set 6 : prefmember for metrics enabled #

Total comments: 2

Patch Set 7 : incognito field naming #

Total comments: 6

Patch Set 8 : Use ChromeResourceDispatcherHostDelegate instead of ChromeNetworkDelegate #

Patch Set 9 : merge to TOT #

Total comments: 2

Patch Set 10 : remove mutable #

Total comments: 1

Patch Set 11 : remove param->incognito #

Total comments: 2

Patch Set 12 : nit: braces #

Patch Set 13 : merge to tot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -25 lines) Patch
M chrome/browser/google/google_util.h View 1 2 3 1 chunk +15 lines, -2 lines 0 comments Download
M chrome/browser/google/google_util.cc View 3 chunks +16 lines, -12 lines 0 comments Download
M chrome/browser/google/google_util_unittest.cc View 1 2 3 4 2 chunks +49 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/protector/protector_service.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
SteveT
Fixes made as discussed in the other thread: We now avoid use of profile_ by ...
8 years, 8 months ago (2012-04-17 17:48:33 UTC) #1
MAD
LGTM with small nits... Thanks! BYE MAD https://chromiumcodereview.appspot.com/10108026/diff/2001/chrome/browser/google/google_util.h File chrome/browser/google/google_util.h (right): https://chromiumcodereview.appspot.com/10108026/diff/2001/chrome/browser/google/google_util.h#newcode57 chrome/browser/google/google_util.h:57: // explicit ...
8 years, 8 months ago (2012-04-17 18:16:28 UTC) #2
SteveT
Thanks, MAD! Fixed your nits. https://chromiumcodereview.appspot.com/10108026/diff/2001/chrome/browser/google/google_util.h File chrome/browser/google/google_util.h (right): https://chromiumcodereview.appspot.com/10108026/diff/2001/chrome/browser/google/google_util.h#newcode57 chrome/browser/google/google_util.h:57: // explicit port. If ...
8 years, 8 months ago (2012-04-17 18:20:46 UTC) #3
battre
https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/google/google_util_unittest.cc File chrome/browser/google/google_util_unittest.cc (right): https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/google/google_util_unittest.cc#newcode277 chrome/browser/google/google_util_unittest.cc:277: google_util::DISALLOW_SUBDOMAIN)); do you want to add tests for scheme ...
8 years, 8 months ago (2012-04-17 20:33:02 UTC) #4
Ilya Sherman
https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc File chrome/browser/extensions/api/web_request/web_request_api_unittest.cc (right): https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc#newcode129 chrome/browser/extensions/api/web_request/web_request_api_unittest.cc:129: CookieSettings::Factory::GetForProfile(&profile_), false, nit: Please use an enumerated constant so ...
8 years, 8 months ago (2012-04-17 20:55:39 UTC) #5
SteveT
Addressed one of Dominic's comments. A question for the other comment. Ilya: I'll address yours ...
8 years, 8 months ago (2012-04-17 23:26:43 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/net/chrome_network_delegate.cc#newcode333 chrome/browser/net/chrome_network_delegate.cc:333: MetricsServiceHelper::IsMetricsReportingEnabled()) { On 2012/04/17 23:26:44, SteveT wrote: > Ah, ...
8 years, 8 months ago (2012-04-17 23:33:13 UTC) #7
battre
https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/net/chrome_network_delegate.cc#newcode333 chrome/browser/net/chrome_network_delegate.cc:333: MetricsServiceHelper::IsMetricsReportingEnabled()) { On 2012/04/17 23:33:13, Ilya Sherman wrote: > ...
8 years, 8 months ago (2012-04-18 17:05:04 UTC) #8
SteveT
On 2012/04/18 17:05:04, battre wrote: > https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/net/chrome_network_delegate.cc > File chrome/browser/net/chrome_network_delegate.cc (right): > > https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/net/chrome_network_delegate.cc#newcode333 > ...
8 years, 8 months ago (2012-04-18 17:11:58 UTC) #9
battre
On 2012/04/18 17:11:58, SteveT wrote: > On 2012/04/18 17:05:04, battre wrote: > > > https://chromiumcodereview.appspot.com/10108026/diff/11002/chrome/browser/net/chrome_network_delegate.cc ...
8 years, 8 months ago (2012-04-18 17:17:54 UTC) #10
SteveT
On 2012/04/18 17:17:54, battre wrote: > On 2012/04/18 17:11:58, SteveT wrote: > > On 2012/04/18 ...
8 years, 8 months ago (2012-04-18 19:15:08 UTC) #11
SteveT
> I don't think we have a guarantee on what threads are created at the ...
8 years, 8 months ago (2012-04-18 19:34:21 UTC) #12
SteveT
Alright. I've made the move to a PrefMember, as suggested. ProfileImplIOData owns the PrefMember, and ...
8 years, 8 months ago (2012-04-19 18:38:01 UTC) #13
Ilya Sherman
LGTM, thanks :) http://codereview.chromium.org/10108026/diff/20001/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h (right): http://codereview.chromium.org/10108026/diff/20001/chrome/browser/net/chrome_network_delegate.h#newcode35 chrome/browser/net/chrome_network_delegate.h:35: INCOGNITO, nit: I know it makes ...
8 years, 8 months ago (2012-04-19 18:52:58 UTC) #14
SteveT
Pinging Dominic and Will :)
8 years, 8 months ago (2012-04-20 16:46:14 UTC) #15
SteveT
Oh, and I've addressed Ilya's nit. http://codereview.chromium.org/10108026/diff/20001/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h (right): http://codereview.chromium.org/10108026/diff/20001/chrome/browser/net/chrome_network_delegate.h#newcode35 chrome/browser/net/chrome_network_delegate.h:35: INCOGNITO, Okay, okay. ...
8 years, 8 months ago (2012-04-20 16:50:32 UTC) #16
willchan no longer on Chromium
I chatted with stevet@. My primary concern is whether or not this should apply to ...
8 years, 8 months ago (2012-04-20 17:40:46 UTC) #17
battre
LGTM http://codereview.chromium.org/10108026/diff/24003/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): http://codereview.chromium.org/10108026/diff/24003/chrome/browser/metrics/metrics_service.h#newcode35 chrome/browser/metrics/metrics_service.h:35: class ChromeNetworkDelegate; nit: not necessary http://codereview.chromium.org/10108026/diff/24003/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h ...
8 years, 8 months ago (2012-04-23 10:49:55 UTC) #18
SteveT
Okay. I've rewritten this code to use Will's suggested approach of RDH over the ChromeNetworkDelegate. ...
8 years, 8 months ago (2012-04-27 00:05:06 UTC) #19
battre
Still LGTM - with one comment. http://codereview.chromium.org/10108026/diff/46001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): http://codereview.chromium.org/10108026/diff/46001/chrome/browser/profiles/profile_io_data.h#newcode345 chrome/browser/profiles/profile_io_data.h:345: mutable bool is_incognito_; ...
8 years, 8 months ago (2012-04-27 09:44:35 UTC) #20
SteveT
Dominic's comment addressed - thanks! http://codereview.chromium.org/10108026/diff/46001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): http://codereview.chromium.org/10108026/diff/46001/chrome/browser/profiles/profile_io_data.h#newcode345 chrome/browser/profiles/profile_io_data.h:345: mutable bool is_incognito_; Oops ...
8 years, 8 months ago (2012-04-27 14:17:47 UTC) #21
SteveT
Pinging willchan@ on this... Will, do you have a chance to take a look today? ...
8 years, 8 months ago (2012-04-27 18:46:00 UTC) #22
willchan no longer on Chromium
lgtm other than a cleanup request http://codereview.chromium.org/10108026/diff/54001/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): http://codereview.chromium.org/10108026/diff/54001/chrome/browser/profiles/profile_io_data.h#newcode147 chrome/browser/profiles/profile_io_data.h:147: bool is_incognito; Can ...
8 years, 8 months ago (2012-04-27 21:46:47 UTC) #23
SteveT
(Excuse the spam - reitveld's maintenance allowed emails through, but not my R changes.) Additional ...
8 years, 7 months ago (2012-04-28 17:44:53 UTC) #24
SteveT
R+pkasting for OWNERS of chrome/browser/search_engines re-rubber-stamping.
8 years, 7 months ago (2012-04-28 19:35:04 UTC) #25
SteveT
Pinging, since this is blocking further work. R+Anton, who is in a more convenient time ...
8 years, 7 months ago (2012-04-30 18:12:45 UTC) #26
Peter Kasting
LGTM http://codereview.chromium.org/10108026/diff/57002/chrome/browser/search_engines/template_url_prepopulate_data.cc File chrome/browser/search_engines/template_url_prepopulate_data.cc (right): http://codereview.chromium.org/10108026/diff/57002/chrome/browser/search_engines/template_url_prepopulate_data.cc#newcode3288 chrome/browser/search_engines/template_url_prepopulate_data.cc:3288: google_util::DISALLOW_SUBDOMAIN)) { Nit: {} not necessary
8 years, 7 months ago (2012-04-30 18:13:34 UTC) #27
Ilya Sherman
FWIW, I think you should just submit this CL with Ivan TBR'ed, since this is ...
8 years, 7 months ago (2012-04-30 21:11:52 UTC) #28
SteveT
Hm, you're probably right, since Ivan's approval is the last I'm waiting for. I've added ...
8 years, 7 months ago (2012-04-30 21:15:44 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10108026/64002
8 years, 7 months ago (2012-04-30 21:16:03 UTC) #30
whywhat
lgtm Russia is on holidays until May 3.
8 years, 7 months ago (2012-04-30 22:29:00 UTC) #31
commit-bot: I haz the power
8 years, 7 months ago (2012-04-30 22:54:40 UTC) #32
Change committed as 134625

Powered by Google App Engine
This is Rietveld 408576698