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

Unified Diff: content/browser/geolocation/mock_location_provider.cc

Issue 10107017: Remove requesting_frame parameters from Geolocation stack (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment addressed. Created 8 years, 8 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: content/browser/geolocation/mock_location_provider.cc
diff --git a/content/browser/geolocation/mock_location_provider.cc b/content/browser/geolocation/mock_location_provider.cc
index 29b7058c5dd9f72aeac707c808fa4197d5bf0247..fc9abd3c6972e99645e851d294d863425d9b8b3b 100644
--- a/content/browser/geolocation/mock_location_provider.cc
+++ b/content/browser/geolocation/mock_location_provider.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -19,6 +19,7 @@ MockLocationProvider* MockLocationProvider::instance_ = NULL;
MockLocationProvider::MockLocationProvider(MockLocationProvider** self_ref)
: state_(STOPPED),
+ is_permission_granted_(false),
self_ref_(self_ref),
provider_loop_(base::MessageLoopProxy::current()) {
CHECK(self_ref_);
@@ -58,8 +59,8 @@ void MockLocationProvider::GetPosition(Geoposition* position) {
*position = position_;
}
-void MockLocationProvider::OnPermissionGranted(const GURL& requesting_frame) {
- permission_granted_url_ = requesting_frame;
+void MockLocationProvider::OnPermissionGranted() {
+ is_permission_granted_ = true;
}
// Mock location provider that automatically calls back its client at most
@@ -92,8 +93,8 @@ class AutoMockLocationProvider : public MockLocationProvider {
return true;
}
- void OnPermissionGranted(const GURL& requesting_frame) {
- MockLocationProvider::OnPermissionGranted(requesting_frame);
+ void OnPermissionGranted() {
+ MockLocationProvider::OnPermissionGranted();
if (requires_permission_to_start_) {
UpdateListenersIfNeeded();
}
« no previous file with comments | « content/browser/geolocation/mock_location_provider.h ('k') | content/browser/geolocation/network_location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698