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

Unified Diff: webkit/tools/test_shell/test_shell.cc

Issue 5938002: Remove legacy non-client-based geolocation code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove non-client-based geolocation code. Created 9 years, 12 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
Index: webkit/tools/test_shell/test_shell.cc
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index 2e39f23850f3d6c0d0bb7f0bda647ee07e794ab6..ce8365538bed67fa386624531049328ff3afbe93 100644
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -58,10 +58,6 @@
#include "webkit/tools/test_shell/test_shell_switches.h"
#include "webkit/tools/test_shell/test_webview_delegate.h"
-#if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
-#include "third_party/WebKit/WebKit/chromium/public/WebGeolocationClientMock.h"
-#endif
-
using WebKit::WebCanvas;
using WebKit::WebFrame;
using WebKit::WebNavigationPolicy;
@@ -651,10 +647,8 @@ void TestShell::ResetTestController() {
event_sending_controller_->Reset();
notification_presenter_->Reset();
delegate_->Reset();
-#if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
if (geolocation_client_mock_.get())
geolocation_client_mock_->resetMock();
-#endif
}
void TestShell::LoadFile(const FilePath& file) {
@@ -794,7 +788,6 @@ TestShell::speech_input_controller_mock() {
return speech_input_controller_mock_.get();
}
-#if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
WebKit::WebGeolocationClientMock* TestShell::geolocation_client_mock() {
if (!geolocation_client_mock_.get()) {
geolocation_client_mock_.reset(
@@ -802,7 +795,6 @@ WebKit::WebGeolocationClientMock* TestShell::geolocation_client_mock() {
}
return geolocation_client_mock_.get();
}
-#endif
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698