Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 984a9256f23a6a2d28588e94adacccfef5cc7e2a..f8a282af929821fd8cfe4d101df357d73c4c6142 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -73,6 +73,7 @@ |
#include "content/common/mojo/mojo_shell_connection_impl.h" |
#include "content/public/browser/browser_main_parts.h" |
#include "content/public/browser/content_browser_client.h" |
+#include "content/public/browser/geolocation_provider.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/tracing_controller.h" |
#include "content/public/common/content_client.h" |
@@ -681,6 +682,9 @@ void BrowserMainLoop::PostMainMessageLoopStart() { |
DOMStorageArea::EnableAggressiveCommitDelay(); |
} |
+ GeolocationProvider::SetGeolocationDelegate( |
+ GetContentClient()->browser()->CreateGeolocationDelegate()); |
+ |
// Enable memory-infra dump providers. |
InitSkiaEventTracer(); |
tracing::ProcessMetricsMemoryDumpProvider::RegisterForProcess( |