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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 #endif | 1074 #endif |
1075 | 1075 |
1076 chrome::AddMetricsExtraParts(main_parts); | 1076 chrome::AddMetricsExtraParts(main_parts); |
1077 | 1077 |
1078 return main_parts; | 1078 return main_parts; |
1079 } | 1079 } |
1080 | 1080 |
1081 void ChromeContentBrowserClient::PostAfterStartupTask( | 1081 void ChromeContentBrowserClient::PostAfterStartupTask( |
1082 const tracked_objects::Location& from_here, | 1082 const tracked_objects::Location& from_here, |
1083 const scoped_refptr<base::TaskRunner>& task_runner, | 1083 const scoped_refptr<base::TaskRunner>& task_runner, |
1084 base::Closure task) { | 1084 base::OnceClosure task) { |
1085 AfterStartupTaskUtils::PostTask(from_here, task_runner, std::move(task)); | 1085 AfterStartupTaskUtils::PostTask(from_here, task_runner, std::move(task)); |
1086 } | 1086 } |
1087 | 1087 |
1088 bool ChromeContentBrowserClient::IsBrowserStartupComplete() { | 1088 bool ChromeContentBrowserClient::IsBrowserStartupComplete() { |
1089 return AfterStartupTaskUtils::IsBrowserStartupComplete(); | 1089 return AfterStartupTaskUtils::IsBrowserStartupComplete(); |
1090 } | 1090 } |
1091 | 1091 |
1092 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( | 1092 std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( |
1093 content::BrowserContext* browser_context, | 1093 content::BrowserContext* browser_context, |
1094 const GURL& site) { | 1094 const GURL& site) { |
(...skipping 2515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3610 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3610 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
3611 return variations::GetVariationParamValue( | 3611 return variations::GetVariationParamValue( |
3612 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3612 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
3613 } | 3613 } |
3614 | 3614 |
3615 // static | 3615 // static |
3616 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3616 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
3617 const storage::QuotaSettings* settings) { | 3617 const storage::QuotaSettings* settings) { |
3618 g_default_quota_settings = settings; | 3618 g_default_quota_settings = settings; |
3619 } | 3619 } |
OLD | NEW |