| Index: chrome/browser/geolocation/geolocation_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/geolocation/geolocation_browsertest.cc (revision 39892)
|
| +++ chrome/browser/geolocation/geolocation_browsertest.cc (working copy)
|
| @@ -6,6 +6,7 @@
|
| #include "chrome/browser/app_modal_dialog.h"
|
| #include "chrome/browser/browser.h"
|
| #include "chrome/browser/browser_list.h"
|
| +#include "chrome/browser/geolocation/location_arbitrator.h"
|
| #include "chrome/browser/profile.h"
|
| #include "chrome/browser/renderer_host/render_view_host.h"
|
| #include "chrome/browser/tab_contents/tab_contents.h"
|
| @@ -69,6 +70,7 @@
|
| };
|
|
|
| void Initialize(InitializationOptions options) {
|
| + GeolocationArbitrator::SetUseMockProvider(true);
|
| if (!server_.get()) {
|
| server_ = StartHTTPServer();
|
| }
|
| @@ -172,6 +174,9 @@
|
| InProcessBrowserTest::SetUpCommandLine(command_line);
|
| command_line->AppendSwitch(switches::kEnableGeolocation);
|
| }
|
| + virtual void TearDownInProcessBrowserTestFixture() {
|
| + GeolocationArbitrator::SetUseMockProvider(false);
|
| + }
|
|
|
| scoped_refptr<HTTPTestServer> server_;
|
| InfoBarDelegate* infobar_;
|
|
|