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

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

Issue 2718043002: Replace more hardcoded "ash" strings with ash::mojom::kServiceName (Closed)
Patch Set: Remove ash_util includes that are no longer needed. Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/locale_change_guard.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "chrome/browser/speech/tts_controller.h" 78 #include "chrome/browser/speech/tts_controller.h"
79 #include "chrome/browser/speech/tts_message_filter.h" 79 #include "chrome/browser/speech/tts_message_filter.h"
80 #include "chrome/browser/ssl/ssl_blocking_page.h" 80 #include "chrome/browser/ssl/ssl_blocking_page.h"
81 #include "chrome/browser/ssl/ssl_cert_reporter.h" 81 #include "chrome/browser/ssl/ssl_cert_reporter.h"
82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" 82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h"
83 #include "chrome/browser/ssl/ssl_error_handler.h" 83 #include "chrome/browser/ssl/ssl_error_handler.h"
84 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 84 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
85 #include "chrome/browser/tab_contents/tab_util.h" 85 #include "chrome/browser/tab_contents/tab_util.h"
86 #include "chrome/browser/tracing/chrome_tracing_delegate.h" 86 #include "chrome/browser/tracing/chrome_tracing_delegate.h"
87 #include "chrome/browser/translate/chrome_translate_client.h" 87 #include "chrome/browser/translate/chrome_translate_client.h"
88 #include "chrome/browser/ui/ash/ash_util.h"
89 #include "chrome/browser/ui/blocked_content/blocked_window_params.h" 88 #include "chrome/browser/ui/blocked_content/blocked_window_params.h"
90 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 89 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
91 #include "chrome/browser/ui/browser_navigator.h" 90 #include "chrome/browser/ui/browser_navigator.h"
92 #include "chrome/browser/ui/browser_navigator_params.h" 91 #include "chrome/browser/ui/browser_navigator_params.h"
93 #include "chrome/browser/ui/chrome_select_file_policy.h" 92 #include "chrome/browser/ui/chrome_select_file_policy.h"
94 #include "chrome/browser/ui/sync/sync_promo_ui.h" 93 #include "chrome/browser/ui/sync/sync_promo_ui.h"
95 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" 94 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h"
96 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 95 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
97 #include "chrome/browser/ui/webui/log_web_ui_url.h" 96 #include "chrome/browser/ui/webui/log_web_ui_url.h"
98 #include "chrome/browser/usb/usb_tab_helper.h" 97 #include "chrome/browser/usb/usb_tab_helper.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 209
211 #if defined(OS_WIN) 210 #if defined(OS_WIN)
212 #include "base/strings/string_tokenizer.h" 211 #include "base/strings/string_tokenizer.h"
213 #include "chrome/browser/chrome_browser_main_win.h" 212 #include "chrome/browser/chrome_browser_main_win.h"
214 #include "chrome/browser/conflicts/module_database_win.h" 213 #include "chrome/browser/conflicts/module_database_win.h"
215 #include "chrome/browser/conflicts/module_event_sink_impl_win.h" 214 #include "chrome/browser/conflicts/module_event_sink_impl_win.h"
216 #include "sandbox/win/src/sandbox_policy.h" 215 #include "sandbox/win/src/sandbox_policy.h"
217 #elif defined(OS_MACOSX) 216 #elif defined(OS_MACOSX)
218 #include "chrome/browser/chrome_browser_main_mac.h" 217 #include "chrome/browser/chrome_browser_main_mac.h"
219 #elif defined(OS_CHROMEOS) 218 #elif defined(OS_CHROMEOS)
219 #include "ash/public/interfaces/constants.mojom.h"
220 #include "chrome/browser/chromeos/arc/arc_util.h" 220 #include "chrome/browser/chromeos/arc/arc_util.h"
221 #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_backend_de legate.h" 221 #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_backend_de legate.h"
222 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_del egate.h" 222 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_del egate.h"
223 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h" 223 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h"
224 #include "chrome/browser/chromeos/attestation/platform_verification_impl.h" 224 #include "chrome/browser/chromeos/attestation/platform_verification_impl.h"
225 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" 225 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
226 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" 226 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h"
227 #include "chrome/browser/chromeos/file_manager/app_id.h" 227 #include "chrome/browser/chromeos/file_manager/app_id.h"
228 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate. h" 228 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate. h"
229 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" 229 #include "chrome/browser/chromeos/fileapi/file_system_backend.h"
(...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after
3217 base::MakeUnique<PreferencesConnectionManager>()); 3217 base::MakeUnique<PreferencesConnectionManager>());
3218 }); 3218 });
3219 info.task_runner = base::ThreadTaskRunnerHandle::Get(); 3219 info.task_runner = base::ThreadTaskRunnerHandle::Get();
3220 services->insert(std::make_pair(prefs::mojom::kServiceName, info)); 3220 services->insert(std::make_pair(prefs::mojom::kServiceName, info));
3221 } 3221 }
3222 3222
3223 if (!chrome::IsRunningInMash()) { 3223 if (!chrome::IsRunningInMash()) {
3224 content::ServiceInfo info; 3224 content::ServiceInfo info;
3225 info.factory = base::Bind(&ash_util::CreateEmbeddedAshService, 3225 info.factory = base::Bind(&ash_util::CreateEmbeddedAshService,
3226 base::ThreadTaskRunnerHandle::Get()); 3226 base::ThreadTaskRunnerHandle::Get());
3227 services->insert(std::make_pair("ash", info)); 3227 services->insert(std::make_pair(ash::mojom::kServiceName, info));
3228 } 3228 }
3229 #endif // OS_CHROMEOS 3229 #endif // OS_CHROMEOS
3230 } 3230 }
3231 3231
3232 void ChromeContentBrowserClient::RegisterOutOfProcessServices( 3232 void ChromeContentBrowserClient::RegisterOutOfProcessServices(
3233 OutOfProcessServiceMap* services) { 3233 OutOfProcessServiceMap* services) {
3234 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS) 3234 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
3235 services->insert(std::make_pair("media", 3235 services->insert(std::make_pair("media",
3236 base::ASCIIToUTF16("Media Service"))); 3236 base::ASCIIToUTF16("Media Service")));
3237 #endif 3237 #endif
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
3544 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3544 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3545 return variations::GetVariationParamValue( 3545 return variations::GetVariationParamValue(
3546 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3546 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3547 } 3547 }
3548 3548
3549 // static 3549 // static
3550 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3550 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3551 const storage::QuotaSettings* settings) { 3551 const storage::QuotaSettings* settings) {
3552 g_default_quota_settings = settings; 3552 g_default_quota_settings = settings;
3553 } 3553 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/locale_change_guard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698