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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2464233002: Experiment with redirecting all BrowserThreads (but UI/IO) to TaskScheduler (Closed)
Patch Set: Rely on Thread::using_external_message_loop_ instead of hard-coding BrowserThread::UI Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 3214 matching lines...) Expand 10 before | Expand all | Expand 10 after
3225 kWebRtcDevSwitchNames, 3225 kWebRtcDevSwitchNames,
3226 arraysize(kWebRtcDevSwitchNames)); 3226 arraysize(kWebRtcDevSwitchNames));
3227 } 3227 }
3228 } 3228 }
3229 #endif // defined(ENABLE_WEBRTC) 3229 #endif // defined(ENABLE_WEBRTC)
3230 3230
3231 std::unique_ptr<content::MemoryCoordinatorDelegate> 3231 std::unique_ptr<content::MemoryCoordinatorDelegate>
3232 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { 3232 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() {
3233 return memory::ChromeMemoryCoordinatorDelegate::Create(); 3233 return memory::ChromeMemoryCoordinatorDelegate::Create();
3234 } 3234 }
3235
3236 bool ChromeContentBrowserClient::
3237 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3238 return variations::GetVariationParamValue(
3239 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698