DescriptionTransmit 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 #Messages
Total messages: 32 (0 generated)
|