| 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 7a0798029dcdfdecadca1574982798abdf9a69c8..38a7cf0ef23a0aa4052f44554a65f6659fc007dd 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 =
|
|
|