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

Side by Side Diff: chrome/browser/net/net_pref_observer.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/net/crl_set_fetcher.h ('k') | chrome/browser/net/network_stats.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/net/net_pref_observer.h" 5 #include "chrome/browser/net/net_pref_observer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/task.h"
9 #include "chrome/browser/net/predictor.h" 8 #include "chrome/browser/net/predictor.h"
10 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
11 #include "chrome/browser/prerender/prerender_manager.h" 10 #include "chrome/browser/prerender/prerender_manager.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/common/chrome_notification_types.h" 12 #include "chrome/common/chrome_notification_types.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
15 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
16 #include "content/public/browser/notification_details.h" 15 #include "content/public/browser/notification_details.h"
17 #include "net/http/http_stream_factory.h" 16 #include "net/http/http_stream_factory.h"
18 #include "net/url_request/url_request_throttler_manager.h" 17 #include "net/url_request/url_request_throttler_manager.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 true, 93 true,
95 PrefService::UNSYNCABLE_PREF); 94 PrefService::UNSYNCABLE_PREF);
96 95
97 // For users who created their profile while throttling was off by 96 // For users who created their profile while throttling was off by
98 // default, but have never explicitly turned it on or off, we turn 97 // default, but have never explicitly turned it on or off, we turn
99 // it on which is the new default. 98 // it on which is the new default.
100 if (prefs->GetBoolean(prefs::kHttpThrottlingMayExperiment)) { 99 if (prefs->GetBoolean(prefs::kHttpThrottlingMayExperiment)) {
101 prefs->SetBoolean(prefs::kHttpThrottlingEnabled, true); 100 prefs->SetBoolean(prefs::kHttpThrottlingEnabled, true);
102 } 101 }
103 } 102 }
OLDNEW
« no previous file with comments | « chrome/browser/net/crl_set_fetcher.h ('k') | chrome/browser/net/network_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698