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

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

Issue 2877673003: Expose UkmService to content/ (Closed)
Patch Set: Use ukm::SourceId instead of int32 Created 3 years, 7 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 2905 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
2926 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends( 2930 void ChromeContentBrowserClient::GetAdditionalFileSystemBackends(
2927 content::BrowserContext* browser_context, 2931 content::BrowserContext* browser_context,
2928 const base::FilePath& storage_partition_path, 2932 const base::FilePath& storage_partition_path,
2929 std::vector<std::unique_ptr<storage::FileSystemBackend>>* 2933 std::vector<std::unique_ptr<storage::FileSystemBackend>>*
2930 additional_backends) { 2934 additional_backends) {
2931 #if defined(OS_CHROMEOS) 2935 #if defined(OS_CHROMEOS)
2932 storage::ExternalMountPoints* external_mount_points = 2936 storage::ExternalMountPoints* external_mount_points =
2933 content::BrowserContext::GetMountPoints(browser_context); 2937 content::BrowserContext::GetMountPoints(browser_context);
2934 DCHECK(external_mount_points); 2938 DCHECK(external_mount_points);
2935 auto backend = base::MakeUnique<chromeos::FileSystemBackend>( 2939 auto backend = base::MakeUnique<chromeos::FileSystemBackend>(
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
3580 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3584 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3581 return variations::GetVariationParamValue( 3585 return variations::GetVariationParamValue(
3582 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3586 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3583 } 3587 }
3584 3588
3585 // static 3589 // static
3586 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3590 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3587 const storage::QuotaSettings* settings) { 3591 const storage::QuotaSettings* settings) {
3588 g_default_quota_settings = settings; 3592 g_default_quota_settings = settings;
3589 } 3593 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/renderer_host/render_widget_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698