| OLD | NEW |
| 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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 #endif | 1053 #endif |
| 1054 | 1054 |
| 1055 chrome::AddMetricsExtraParts(main_parts); | 1055 chrome::AddMetricsExtraParts(main_parts); |
| 1056 | 1056 |
| 1057 return main_parts; | 1057 return main_parts; |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 void ChromeContentBrowserClient::PostAfterStartupTask( | 1060 void ChromeContentBrowserClient::PostAfterStartupTask( |
| 1061 const tracked_objects::Location& from_here, | 1061 const tracked_objects::Location& from_here, |
| 1062 const scoped_refptr<base::TaskRunner>& task_runner, | 1062 const scoped_refptr<base::TaskRunner>& task_runner, |
| 1063 const base::Closure& task) { | 1063 base::Closure task) { |
| 1064 AfterStartupTaskUtils::PostTask(from_here, task_runner, task); | 1064 AfterStartupTaskUtils::PostTask(from_here, task_runner, std::move(task)); |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 bool ChromeContentBrowserClient::IsBrowserStartupComplete() { | 1067 bool ChromeContentBrowserClient::IsBrowserStartupComplete() { |
| 1068 return AfterStartupTaskUtils::IsBrowserStartupComplete(); | 1068 return AfterStartupTaskUtils::IsBrowserStartupComplete(); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( | 1071 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( |
| 1072 content::BrowserContext* browser_context, | 1072 content::BrowserContext* browser_context, |
| 1073 const GURL& site) { | 1073 const GURL& site) { |
| 1074 std::string partition_id; | 1074 std::string partition_id; |
| (...skipping 2477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3552 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3552 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3553 return variations::GetVariationParamValue( | 3553 return variations::GetVariationParamValue( |
| 3554 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3554 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3555 } | 3555 } |
| 3556 | 3556 |
| 3557 // static | 3557 // static |
| 3558 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3558 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
| 3559 const storage::QuotaSettings* settings) { | 3559 const storage::QuotaSettings* settings) { |
| 3560 g_default_quota_settings = settings; | 3560 g_default_quota_settings = settings; |
| 3561 } | 3561 } |
| OLD | NEW |