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

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

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: rebase again Created 4 years, 2 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 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after
3016 } 3016 }
3017 3017
3018 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( 3018 void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
3019 StaticMojoApplicationMap* apps) { 3019 StaticMojoApplicationMap* apps) {
3020 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 3020 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
3021 content::MojoApplicationInfo app_info; 3021 content::MojoApplicationInfo app_info;
3022 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); 3022 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication);
3023 apps->insert(std::make_pair("mojo:media", app_info)); 3023 apps->insert(std::make_pair("mojo:media", app_info));
3024 #endif 3024 #endif
3025 #if defined(OS_CHROMEOS) 3025 #if defined(OS_CHROMEOS)
3026 if (chrome::IsRunningInMash()) { 3026 content::MojoShellConnection::GetForProcess()->AddConnectionFilter(
3027 content::MojoShellConnection::GetForProcess()->AddConnectionFilter( 3027 base::MakeUnique<chromeos::ChromeInterfaceFactory>());
3028 base::MakeUnique<chromeos::ChromeInterfaceFactory>());
3029 }
3030 #endif // OS_CHROMEOS 3028 #endif // OS_CHROMEOS
3031 } 3029 }
3032 3030
3033 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications( 3031 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications(
3034 OutOfProcessMojoApplicationMap* apps) { 3032 OutOfProcessMojoApplicationMap* apps) {
3035 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS) 3033 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
3036 apps->insert(std::make_pair("mojo:media", 3034 apps->insert(std::make_pair("mojo:media",
3037 base::ASCIIToUTF16("Media App"))); 3035 base::ASCIIToUTF16("Media App")));
3038 #endif 3036 #endif
3039 } 3037 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
3266 if (channel <= kMaxDisableEncryptionChannel) { 3264 if (channel <= kMaxDisableEncryptionChannel) {
3267 static const char* const kWebRtcDevSwitchNames[] = { 3265 static const char* const kWebRtcDevSwitchNames[] = {
3268 switches::kDisableWebRtcEncryption, 3266 switches::kDisableWebRtcEncryption,
3269 }; 3267 };
3270 to_command_line->CopySwitchesFrom(from_command_line, 3268 to_command_line->CopySwitchesFrom(from_command_line,
3271 kWebRtcDevSwitchNames, 3269 kWebRtcDevSwitchNames,
3272 arraysize(kWebRtcDevSwitchNames)); 3270 arraysize(kWebRtcDevSwitchNames));
3273 } 3271 }
3274 } 3272 }
3275 #endif // defined(ENABLE_WEBRTC) 3273 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « chrome/app/mojo/chrome_manifest.json ('k') | chrome/browser/chrome_content_browser_manifest_overlay.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698