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

Side by Side Diff: chrome/browser/extensions/api/location/location_manager.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/location/location_manager.h" 5 #include "chrome/browser/extensions/api/location/location_manager.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/extensions/extension_system.h"
15 #include "chrome/common/extensions/api/location.h" 14 #include "chrome/common/extensions/api/location.h"
16 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/geolocation_provider.h" 16 #include "content/public/browser/geolocation_provider.h"
18 #include "content/public/browser/notification_details.h" 17 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
20 #include "content/public/common/geoposition.h" 19 #include "content/public/common/geoposition.h"
21 #include "extensions/browser/event_router.h" 20 #include "extensions/browser/event_router.h"
21 #include "extensions/browser/extension_system.h"
22 #include "extensions/common/extension.h" 22 #include "extensions/common/extension.h"
23 #include "extensions/common/permissions/permission_set.h" 23 #include "extensions/common/permissions/permission_set.h"
24 24
25 using content::BrowserThread; 25 using content::BrowserThread;
26 26
27 // TODO(vadimt): Add tests. 27 // TODO(vadimt): Add tests.
28 namespace extensions { 28 namespace extensions {
29 29
30 namespace location = api::location; 30 namespace location = api::location;
31 31
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 ProfileKeyedAPIFactory<LocationManager>* LocationManager::GetFactoryInstance() { 436 ProfileKeyedAPIFactory<LocationManager>* LocationManager::GetFactoryInstance() {
437 return g_factory.Pointer(); 437 return g_factory.Pointer();
438 } 438 }
439 439
440 // static 440 // static
441 LocationManager* LocationManager::Get(Profile* profile) { 441 LocationManager* LocationManager::Get(Profile* profile) {
442 return ProfileKeyedAPIFactory<LocationManager>::GetForProfile(profile); 442 return ProfileKeyedAPIFactory<LocationManager>::GetForProfile(profile);
443 } 443 }
444 444
445 } // namespace extensions 445 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.cc ('k') | chrome/browser/extensions/api/management/management_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698