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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 2784923002: [Media Router] Don't build dial_device_description_parser on Android. (Closed)
Patch Set: no ENABLE_MEDIA_ROUTER 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index 15e0ea66f4c2a32315246c7f60e8567cf4507585..dfc4dd530c884b154fe90b9d70540335b75a4dfc 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -14,7 +14,6 @@
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "chrome/common/file_patcher.mojom.h"
-#include "chrome/utility/media_router/dial_device_description_parser_impl.h"
#include "chrome/utility/utility_message_handler.h"
#include "components/payments/content/utility/payment_manifest_parser.h"
#include "components/safe_json/utility/safe_json_parser_mojo_impl.h"
@@ -31,11 +30,11 @@
#if !defined(OS_ANDROID)
#include "chrome/common/resource_usage_reporter.mojom.h"
+#include "chrome/utility/media_router/dial_device_description_parser_impl.h"
#include "chrome/utility/profile_import_handler.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
#include "net/proxy/mojo_proxy_resolver_factory_impl.h"
#include "net/proxy/proxy_resolver_v8.h"
-#endif
+#endif // !defined(OS_ANDROID)
#if defined(OS_CHROMEOS)
#include "chrome/common/zip_file_creator.mojom.h"
@@ -279,7 +278,9 @@ void ChromeContentUtilityClient::ExposeInterfacesToBrowser(
base::Bind(CreateProxyResolverFactory));
registry->AddInterface(base::Bind(CreateResourceUsageReporter));
registry->AddInterface(base::Bind(&ProfileImportHandler::Create));
-#endif
+ registry->AddInterface(
+ base::Bind(&media_router::DialDeviceDescriptionParserImpl::Create));
+#endif // !defined(OS_ANDROID)
registry->AddInterface(base::Bind(&payments::PaymentManifestParser::Create));
registry->AddInterface(
base::Bind(&safe_json::SafeJsonParserMojoImpl::Create));
@@ -292,10 +293,6 @@ void ChromeContentUtilityClient::ExposeInterfacesToBrowser(
#if defined(FULL_SAFE_BROWSING)
registry->AddInterface(base::Bind(&SafeArchiveAnalyzerImpl::Create));
#endif
-#if defined(ENABLE_MEDIA_ROUTER)
- registry->AddInterface(
- base::Bind(&media_router::DialDeviceDescriptionParserImpl::Create));
-#endif // defined(ENABLE_MEDIA_ROUTER)
}
// static
« no previous file with comments | « chrome/utility/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698