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

Issue 3312014: Add a command line switch "--disable-background-networking", to be used in... (Closed)

Created:
10 years, 3 months ago by Mike Belshe
Modified:
9 years, 5 months ago
Reviewers:
cbentzel, Peter Kasting
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, ben+cc_chromium.org, binoykunhi
Visibility:
Public.

Description

Add a command line switch "--disable-background-networking", to be used in benchmarking when unexpected background networking can cause undesired vairance. The following systems are disabled via this flag: - IntranetRedirectDetector (requests randomURLs 2-5s after startup) - GoogleUrlTracker (searchdomaincheck) - SafeBrowsing updater - Extension updater BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58892

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -1 line) Patch
M chrome/browser/extensions/extension_updater.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/google/google_url_tracker.cc View 3 chunks +6 lines, -0 lines 1 comment Download
M chrome/browser/intranet_redirect_detector.cc View 2 chunks +6 lines, -0 lines 1 comment Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Mike Belshe
Antony - most of this change is generic and not related to extensions. Sent to ...
10 years, 3 months ago (2010-09-07 18:23:11 UTC) #1
Mike Belshe
Since Antony is out... Maybe Peter can take a look... thanks!
10 years, 3 months ago (2010-09-08 19:32:49 UTC) #2
Peter Kasting
LGTM http://codereview.chromium.org/3312014/diff/1/3 File chrome/browser/google/google_url_tracker.cc (right): http://codereview.chromium.org/3312014/diff/1/3#newcode193 chrome/browser/google/google_url_tracker.cc:193: if (CommandLine::ForCurrentProcess()->HasSwitch( Nit: I'd put this at the ...
10 years, 3 months ago (2010-09-08 19:38:44 UTC) #3
Mike Belshe
Thanks - I checked with another person for a vote. Decided to leave it with ...
10 years, 3 months ago (2010-09-08 22:13:45 UTC) #4
cbentzel
On 2010/09/08 22:13:45, Mike Belshe wrote: > Thanks - I checked with another person for ...
10 years, 3 months ago (2010-09-08 22:19:31 UTC) #5
Peter Kasting
On 2010/09/08 22:19:31, cbentzel wrote: > Would it make sense to just disable at the ...
10 years, 3 months ago (2010-09-08 22:23:46 UTC) #6
mbelshe
On Wed, Sep 8, 2010 at 3:23 PM, <pkasting@chromium.org> wrote: > On 2010/09/08 22:19:31, cbentzel ...
10 years, 3 months ago (2010-09-08 23:47:58 UTC) #7
Peter Kasting
On 2010/09/08 23:47:58, mbelshe wrote: > Is it true that URLFetcher is only used for ...
10 years, 3 months ago (2010-09-09 01:14:44 UTC) #8
cbentzel
Sometimes when I'm debugging network code I modify URLFetcher::Core::Start to early return and skip the ...
10 years, 3 months ago (2010-09-09 02:22:22 UTC) #9
asargent_no_longer_on_chrome
It would be nice to have one common code path (a BackgroundUrlFetcher class?) for all ...
10 years, 3 months ago (2010-09-09 17:52:49 UTC) #10
Peter Kasting
10 years, 3 months ago (2010-09-09 18:04:05 UTC) #11
On 2010/09/09 17:52:49, Antony Sargent wrote:
> It would be nice to have one common code path (a BackgroundUrlFetcher
> class?) for all background-fetching code for things like honoring "please
> backoff" response codes from servers,

We already honor backoff through a common codepath.

> and other speculative ideas like a
> mode for "I'm on expensive cell phone tethering; please minimize unnecessary
> requests".

It can be very difficult to determine which requests are "unnecessary" in this
sense.  I think it might be unwise to add separate APIs for these cases; it's
too easy to get their usage wrong.

This patch does what Mike wants.  Let's leave it at that.

Powered by Google App Engine
This is Rietveld 408576698