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

Unified Diff: chrome/browser/extensions/api/location/location_manager.cc

Issue 314113010: Remove deprecated permissions functions from Extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: chrome/browser/extensions/api/location/location_manager.cc
diff --git a/chrome/browser/extensions/api/location/location_manager.cc b/chrome/browser/extensions/api/location/location_manager.cc
index b436e9ec372f0e0723636bdf229fd9e23104576c..8762a3f888f78a6dcf16339c97db40477ee549b5 100644
--- a/chrome/browser/extensions/api/location/location_manager.cc
+++ b/chrome/browser/extensions/api/location/location_manager.cc
@@ -22,6 +22,7 @@
#include "extensions/browser/extension_system.h"
#include "extensions/common/extension.h"
#include "extensions/common/permissions/permission_set.h"
+#include "extensions/common/permissions/permissions_data.h"
using content::BrowserThread;
@@ -358,7 +359,8 @@ void LocationManager::Observe(int type,
const Extension* extension =
content::Details<const Extension>(details).ptr();
- if (extension->HasAPIPermission(APIPermission::kLocation)) {
+ if (extension->permissions_data()->HasAPIPermission(
+ APIPermission::kLocation)) {
content::GeolocationProvider::GetInstance()->
UserDidOptIntoLocationServices();
}

Powered by Google App Engine
This is Rietveld 408576698