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

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

Issue 330383003: Remove deprecated extension notifications from APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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_api.cc
diff --git a/chrome/browser/extensions/api/location/location_api.cc b/chrome/browser/extensions/api/location/location_api.cc
index 7c91782ba1ebf82430d794b2ea222329c10e99d1..c406ff68f67c4c47dff9eca5ac9847a656cd148a 100644
--- a/chrome/browser/extensions/api/location/location_api.cc
+++ b/chrome/browser/extensions/api/location/location_api.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/extensions/api/location/location_api.h"
#include "chrome/browser/extensions/api/location/location_manager.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/location.h"
#include "extensions/common/error_utils.h"
@@ -49,7 +48,7 @@ bool LocationWatchLocationFunction::RunSync() {
}
// TODO(vadimt): validate and use params->request_info.maximumAge
- LocationManager::Get(GetProfile())
+ LocationManager::Get(browser_context())
->AddLocationRequest(extension_id(),
params->name,
min_distance_in_meters,
@@ -63,7 +62,7 @@ bool LocationClearWatchFunction::RunSync() {
ClearWatch::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
- LocationManager::Get(GetProfile())
+ LocationManager::Get(browser_context())
->RemoveLocationRequest(extension_id(), params->name);
return true;

Powered by Google App Engine
This is Rietveld 408576698