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

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: Restructure based on feedback 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 3000 matching lines...) Expand 10 before | Expand all | Expand 10 after
3011 } 3011 }
3012 3012
3013 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( 3013 void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
3014 StaticMojoApplicationMap* apps) { 3014 StaticMojoApplicationMap* apps) {
3015 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 3015 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
3016 content::MojoApplicationInfo app_info; 3016 content::MojoApplicationInfo app_info;
3017 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication); 3017 app_info.application_factory = base::Bind(&media::CreateMojoMediaApplication);
3018 apps->insert(std::make_pair("mojo:media", app_info)); 3018 apps->insert(std::make_pair("mojo:media", app_info));
3019 #endif 3019 #endif
3020 #if defined(OS_CHROMEOS) 3020 #if defined(OS_CHROMEOS)
3021 if (chrome::IsRunningInMash()) { 3021 content::MojoShellConnection::GetForProcess()->AddConnectionFilter(
3022 content::MojoShellConnection::GetForProcess()->AddConnectionFilter( 3022 base::MakeUnique<chromeos::ChromeInterfaceFactory>());
3023 base::MakeUnique<chromeos::ChromeInterfaceFactory>());
3024 }
3025 #endif // OS_CHROMEOS 3023 #endif // OS_CHROMEOS
3026 } 3024 }
3027 3025
3028 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications( 3026 void ChromeContentBrowserClient::RegisterOutOfProcessMojoApplications(
3029 OutOfProcessMojoApplicationMap* apps) { 3027 OutOfProcessMojoApplicationMap* apps) {
3030 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS) 3028 #if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
3031 apps->insert(std::make_pair("mojo:media", 3029 apps->insert(std::make_pair("mojo:media",
3032 base::ASCIIToUTF16("Media App"))); 3030 base::ASCIIToUTF16("Media App")));
3033 #endif 3031 #endif
3034 } 3032 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
3261 if (channel <= kMaxDisableEncryptionChannel) { 3259 if (channel <= kMaxDisableEncryptionChannel) {
3262 static const char* const kWebRtcDevSwitchNames[] = { 3260 static const char* const kWebRtcDevSwitchNames[] = {
3263 switches::kDisableWebRtcEncryption, 3261 switches::kDisableWebRtcEncryption,
3264 }; 3262 };
3265 to_command_line->CopySwitchesFrom(from_command_line, 3263 to_command_line->CopySwitchesFrom(from_command_line,
3266 kWebRtcDevSwitchNames, 3264 kWebRtcDevSwitchNames,
3267 arraysize(kWebRtcDevSwitchNames)); 3265 arraysize(kWebRtcDevSwitchNames));
3268 } 3266 }
3269 } 3267 }
3270 #endif // defined(ENABLE_WEBRTC) 3268 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698