| 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 2905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2916 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers( | 2916 void ChromeContentBrowserClient::GetURLRequestAutoMountHandlers( |
| 2917 std::vector<storage::URLRequestAutoMountHandler>* handlers) { | 2917 std::vector<storage::URLRequestAutoMountHandler>* handlers) { |
| 2918 for (size_t i = 0; i < extra_parts_.size(); ++i) | 2918 for (size_t i = 0; i < extra_parts_.size(); ++i) |
| 2919 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers); | 2919 extra_parts_[i]->GetURLRequestAutoMountHandlers(handlers); |
| 2920 } | 2920 } |
| 2921 | 2921 |
| 2922 ::rappor::RapporService* ChromeContentBrowserClient::GetRapporService() { | 2922 ::rappor::RapporService* ChromeContentBrowserClient::GetRapporService() { |
| 2923 return g_browser_process->rappor_service(); | 2923 return g_browser_process->rappor_service(); |
| 2924 } | 2924 } |
| 2925 | 2925 |
| 2926 ::ukm::UkmRecorder* ChromeContentBrowserClient::GetUkmRecorder() { | |
| 2927 return g_browser_process->ukm_recorder(); | |
| 2928 } | |
| 2929 | |
| 2930 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( | 2926 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( |
| 2931 content::BrowserContext* browser_context, | 2927 content::BrowserContext* browser_context, |
| 2932 const base::FilePath& storage_partition_path, | 2928 const base::FilePath& storage_partition_path, |
| 2933 std::vector<std::unique_ptr<storage::FileSystemBackend>>* | 2929 std::vector<std::unique_ptr<storage::FileSystemBackend>>* |
| 2934 additional_backends) { | 2930 additional_backends) { |
| 2935 #if defined(OS_CHROMEOS) | 2931 #if defined(OS_CHROMEOS) |
| 2936 storage::ExternalMountPoints* external_mount_points = | 2932 storage::ExternalMountPoints* external_mount_points = |
| 2937 content::BrowserContext::GetMountPoints(browser_context); | 2933 content::BrowserContext::GetMountPoints(browser_context); |
| 2938 DCHECK(external_mount_points); | 2934 DCHECK(external_mount_points); |
| 2939 auto backend = base::MakeUnique<chromeos::FileSystemBackend>( | 2935 auto backend = base::MakeUnique<chromeos::FileSystemBackend>( |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3580 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3576 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3581 return variations::GetVariationParamValue( | 3577 return variations::GetVariationParamValue( |
| 3582 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3578 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3583 } | 3579 } |
| 3584 | 3580 |
| 3585 // static | 3581 // static |
| 3586 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3582 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
| 3587 const storage::QuotaSettings* settings) { | 3583 const storage::QuotaSettings* settings) { |
| 3588 g_default_quota_settings = settings; | 3584 g_default_quota_settings = settings; |
| 3589 } | 3585 } |
| OLD | NEW |