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

Unified Diff: chrome/browser/chromeos/proxy_config_service_impl.h

Issue 8727037: Signed settings refactoring: Proper caching and more tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 9 years, 1 month 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/chromeos/proxy_config_service_impl.h
diff --git a/chrome/browser/chromeos/proxy_config_service_impl.h b/chrome/browser/chromeos/proxy_config_service_impl.h
index 4cb5b878a5d1c00e311dc2fd6e00a2db19682c24..ac07dd64b17386e78d05c4f175424ead86b95b76 100644
--- a/chrome/browser/chromeos/proxy_config_service_impl.h
+++ b/chrome/browser/chromeos/proxy_config_service_impl.h
@@ -12,7 +12,6 @@
#include "base/basictypes.h"
#include "base/values.h"
#include "chrome/browser/chromeos/cros/network_library.h"
-#include "chrome/browser/chromeos/login/signed_settings.h"
#include "chrome/browser/net/pref_proxy_config_tracker_impl.h"
#include "chrome/browser/prefs/pref_member.h"
#include "content/public/browser/notification_registrar.h"
@@ -35,7 +34,6 @@ namespace chromeos {
// user profile
class ProxyConfigServiceImpl
: public PrefProxyConfigTrackerImpl,
- public SignedSettings::Delegate<const base::Value*>,
public NetworkLibrary::NetworkManagerObserver,
public NetworkLibrary::NetworkObserver {
public:
@@ -191,10 +189,6 @@ class ProxyConfigServiceImpl
virtual void OnProxyConfigChanged(ProxyPrefs::ConfigState config_state,
const net::ProxyConfig& config) OVERRIDE;
- // Implementation for SignedSettings::Delegate
- virtual void OnSettingsOpCompleted(SignedSettings::ReturnCode code,
- const base::Value* value) OVERRIDE;
-
// NetworkLibrary::NetworkManagerObserver implementation.
virtual void OnNetworkManagerChanged(NetworkLibrary* cros) OVERRIDE;
@@ -264,6 +258,8 @@ class ProxyConfigServiceImpl
// Reset UI cache variables that keep track of UI activities.
void ResetUICache();
+ void FetchProxyPolicy();
+
// Data members.
// Service path of currently active network (determined via flimflam
@@ -295,13 +291,12 @@ class ProxyConfigServiceImpl
content::NotificationRegistrar registrar_;
- // Operation to retrieve proxy setting from device.
- scoped_refptr<SignedSettings> retrieve_property_op_;
-
// Callbacks for notification when network to be viewed has been changed from
// the UI.
std::vector<base::Closure> callbacks_;
+ base::WeakPtrFactory<ProxyConfigServiceImpl> pointer_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceImpl);
};

Powered by Google App Engine
This is Rietveld 408576698