Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index f1cb6e4e5b860f0a647792b6a247041580ffc256..1e5d457f7dd762496c5b2e87b7d505e1347a5587 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -119,6 +119,7 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/child_process_host.h" |
#include "content/public/common/content_descriptors.h" |
+#include "content/public/common/service_registry.h" |
#include "content/public/common/url_utils.h" |
#include "content/public/common/web_preferences.h" |
#include "gin/v8_initializer.h" |
@@ -140,6 +141,7 @@ |
#include "chrome/browser/chrome_browser_main_mac.h" |
#include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" |
#elif defined(OS_CHROMEOS) |
+#include "chrome/browser/chromeos/attestation/platform_verification_impl.h" |
#include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
#include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" |
#include "chrome/browser/chromeos/file_manager/app_id.h" |
@@ -2334,6 +2336,16 @@ bool ChromeContentBrowserClient::CheckMediaAccessPermission( |
browser_context, security_origin, type); |
} |
+void ChromeContentBrowserClient::OverrideRenderFrameMojoServices( |
+ content::ServiceRegistry* registry, |
+ content::RenderFrameHost* render_frame_host) { |
+#if defined(OS_CHROMEOS) |
+ registry->AddService( |
+ base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, |
+ render_frame_host)); |
xhwang
2015/05/05 21:53:03
Currently nobody is using these services, so I can
|
+#endif |
+} |
+ |
void ChromeContentBrowserClient::OpenURL( |
content::BrowserContext* browser_context, |
const content::OpenURLParams& params, |