| 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 35ed6346beb852909b6d190d2d03b004b72e7551..8867517f0746f5df0a676ed403edc17bd4853116 100644
|
| --- a/chrome/browser/extensions/api/location/location_manager.cc
|
| +++ b/chrome/browser/extensions/api/location/location_manager.cc
|
| @@ -299,7 +299,8 @@ void LocationRequest::OnPositionReported(const content::Geoposition& position) {
|
|
|
| LocationManager::LocationManager(content::BrowserContext* context)
|
| : profile_(Profile::FromBrowserContext(context)) {
|
| - registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,
|
| + registrar_.Add(this,
|
| + chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED,
|
| content::Source<Profile>(profile_));
|
| registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED,
|
| content::Source<Profile>(profile_));
|
| @@ -403,7 +404,7 @@ void LocationManager::Observe(int type,
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
|
|
| switch (type) {
|
| - case chrome::NOTIFICATION_EXTENSION_LOADED: {
|
| + case chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED: {
|
| // Grants permission to use geolocation once an extension with "location"
|
| // permission is loaded.
|
| const Extension* extension =
|
|
|