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

Unified Diff: chromeos/network/geolocation_handler.h

Issue 14729017: Add NetworkHandler to own network handlers in src/chromeos/network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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: chromeos/network/geolocation_handler.h
diff --git a/chromeos/network/geolocation_handler.h b/chromeos/network/geolocation_handler.h
index 9c3e533931ed34702a5eee367e8bc517e943c8df..68766d35280a1a746378eb992279575747a74622 100644
--- a/chromeos/network/geolocation_handler.h
+++ b/chromeos/network/geolocation_handler.h
@@ -9,6 +9,7 @@
#include "base/time.h"
#include "chromeos/dbus/dbus_method_call_status.h"
#include "chromeos/dbus/shill_property_changed_observer.h"
+#include "chromeos/network/network_handler.h"
#include "chromeos/network/network_util.h"
namespace base {
@@ -33,11 +34,6 @@ class CHROMEOS_EXPORT GeolocationHandler : public ShillPropertyChangedObserver {
public:
virtual ~GeolocationHandler();
- // Manage the global instance. Must be initialized before any calls to Get().
- static void Initialize();
- static void Shutdown();
- static GeolocationHandler* Get();
-
// This sends a request for wifi access point data. If data is already
// available, returns |true|, fills |access_points| with the latest access
// point data, and sets |age_ms| to the time since the last update in MS.
@@ -50,8 +46,10 @@ class CHROMEOS_EXPORT GeolocationHandler : public ShillPropertyChangedObserver {
const base::Value& value) OVERRIDE;
private:
+ friend class NetworkHandler;
friend class GeolocationHandlerTest;
GeolocationHandler();
+
void Init();
// ShillManagerClient callback

Powered by Google App Engine
This is Rietveld 408576698