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

Side by Side Diff: chrome/renderer/geolocation_dispatcher.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, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
6
7 #include "chrome/renderer/geolocation_dispatcher.h" 5 #include "chrome/renderer/geolocation_dispatcher.h"
8 6
9 #include "chrome/renderer/render_view.h" 7 #include "chrome/renderer/render_view.h"
10 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPermissionRequ est.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPermissionRequ est.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPermissionRequ estManager.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPermissionRequ estManager.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationClient.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationClient.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPosition.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPosition.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationError.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationError.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 default: 142 default:
145 DCHECK(false); 143 DCHECK(false);
146 NOTREACHED() << geoposition.error_code; 144 NOTREACHED() << geoposition.error_code;
147 return; 145 return;
148 } 146 }
149 controller_->errorOccurred( 147 controller_->errorOccurred(
150 WebGeolocationError( 148 WebGeolocationError(
151 code, WebKit::WebString::fromUTF8(geoposition.error_message))); 149 code, WebKit::WebString::fromUTF8(geoposition.error_message)));
152 } 150 }
153 } 151 }
154
155 #endif // CLIENT_BASED_GEOLOCATION
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698