| 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 2941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2952 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers( | 2952 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers( |
| 2953 std::vector<storage::URLRequestAutoMountHandler>* handlers) { | 2953 std::vector<storage::URLRequestAutoMountHandler>* handlers) { |
| 2954 for (size_t i = 0; i < extra_parts_.size(); ++i) | 2954 for (size_t i = 0; i < extra_parts_.size(); ++i) |
| 2955 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers); | 2955 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers); |
| 2956 } | 2956 } |
| 2957 | 2957 |
| 2958 ::rappor::RapporService* ChromeContentBrowserClient::GetRapporService() { | 2958 ::rappor::RapporService* ChromeContentBrowserClient::GetRapporService() { |
| 2959 return g_browser_process->rappor_service(); | 2959 return g_browser_process->rappor_service(); |
| 2960 } | 2960 } |
| 2961 | 2961 |
| 2962 ::ukm::UkmService* ChromeContentBrowserClient::GetUkmService() { |
| 2963 return g_browser_process->ukm_service(); |
| 2964 } |
| 2965 |
| 2962 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( | 2966 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( |
| 2963 content::BrowserContext* browser_context, | 2967 content::BrowserContext* browser_context, |
| 2964 const base::FilePath& storage_partition_path, | 2968 const base::FilePath& storage_partition_path, |
| 2965 std::vector<std::unique_ptr<storage::FileSystemBackend>>* | 2969 std::vector<std::unique_ptr<storage::FileSystemBackend>>* |
| 2966 additional_backends) { | 2970 additional_backends) { |
| 2967 #if defined(OS_CHROMEOS) | 2971 #if defined(OS_CHROMEOS) |
| 2968 storage::ExternalMountPoints* external_mount_points = | 2972 storage::ExternalMountPoints* external_mount_points = |
| 2969 content::BrowserContext::GetMountPoints(browser_context); | 2973 content::BrowserContext::GetMountPoints(browser_context); |
| 2970 DCHECK(external_mount_points); | 2974 DCHECK(external_mount_points); |
| 2971 auto backend = base::MakeUnique<chromeos::FileSystemBackend>( | 2975 auto backend = base::MakeUnique<chromeos::FileSystemBackend>( |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3609 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3613 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3610 return variations::GetVariationParamValue( | 3614 return variations::GetVariationParamValue( |
| 3611 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3615 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3612 } | 3616 } |
| 3613 | 3617 |
| 3614 // static | 3618 // static |
| 3615 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3619 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
| 3616 const storage::QuotaSettings* settings) { | 3620 const storage::QuotaSettings* settings) { |
| 3617 g_default_quota_settings = settings; | 3621 g_default_quota_settings = settings; |
| 3618 } | 3622 } |
| OLD | NEW |