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

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

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: erase Closure* Created 3 years, 8 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
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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 #endif 1055 #endif
1056 1056
1057 chrome::AddMetricsExtraParts(main_parts); 1057 chrome::AddMetricsExtraParts(main_parts);
1058 1058
1059 return main_parts; 1059 return main_parts;
1060 } 1060 }
1061 1061
1062 void ChromeContentBrowserClient::PostAfterStartupTask( 1062 void ChromeContentBrowserClient::PostAfterStartupTask(
1063 const tracked_objects::Location& from_here, 1063 const tracked_objects::Location& from_here,
1064 const scoped_refptr<base::TaskRunner>& task_runner, 1064 const scoped_refptr<base::TaskRunner>& task_runner,
1065 const base::Closure& task) { 1065 base::Closure task) {
1066 AfterStartupTaskUtils::PostTask(from_here, task_runner, task); 1066 AfterStartupTaskUtils::PostTask(from_here, task_runner, std::move(task));
1067 } 1067 }
1068 1068
1069 bool ChromeContentBrowserClient::IsBrowserStartupComplete() { 1069 bool ChromeContentBrowserClient::IsBrowserStartupComplete() {
1070 return AfterStartupTaskUtils::IsBrowserStartupComplete(); 1070 return AfterStartupTaskUtils::IsBrowserStartupComplete();
1071 } 1071 }
1072 1072
1073 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( 1073 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite(
1074 content::BrowserContext* browser_context, 1074 content::BrowserContext* browser_context,
1075 const GURL& site) { 1075 const GURL& site) {
1076 std::string partition_id; 1076 std::string partition_id;
(...skipping 2494 matching lines...) Expand 10 before | Expand all | Expand 10 after
3571 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3571 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3572 return variations::GetVariationParamValue( 3572 return variations::GetVariationParamValue(
3573 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3573 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3574 } 3574 }
3575 3575
3576 // static 3576 // static
3577 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3577 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3578 const storage::QuotaSettings* settings) { 3578 const storage::QuotaSettings* settings) {
3579 g_default_quota_settings = settings; 3579 g_default_quota_settings = settings;
3580 } 3580 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/chromeos/login/users/fake_chrome_user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698