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

Unified Diff: chrome/browser/extensions/settings/settings_managed_frontend.cc

Issue 10784035: Refactored SettingsFrontend and forwarding of calls to the backends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: chrome/browser/extensions/settings/settings_managed_frontend.cc
diff --git a/chrome/browser/extensions/settings/settings_managed_frontend.cc b/chrome/browser/extensions/settings/settings_managed_frontend.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5a36c283c3e33d57ede938bea55905af067e47c2
--- /dev/null
+++ b/chrome/browser/extensions/settings/settings_managed_frontend.cc
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/settings/settings_managed_frontend.h"
+
+#include "base/logging.h"
+#include "content/public/browser/browser_thread.h"
+
+using content::BrowserThread;
+
+namespace extensions {
+
+SettingsManagedFrontend::SettingsManagedFrontend(Profile* profile) {}
not at google - send to devlin 2012/07/18 07:46:18 so I presume you'll be using the Profile for somet
Joao da Silva 2012/07/18 21:40:25 Yep :-) profile->GetPolicyService() is where the s
not at google - send to devlin 2012/07/19 06:43:17 Is it possible to only inject the PolicyService th
Joao da Silva 2012/07/19 11:26:04 Sure, done.
+
+SettingsManagedFrontend::~SettingsManagedFrontend() {}
+
+void SettingsManagedFrontend::RunWithStorage(const Extension* extension,
+ const StorageCallback& callback) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ NOTREACHED() << "Not implemented yet.";
+ callback.Run(NULL);
+}
+
+void SettingsManagedFrontend::DeleteStorageSoon(
+ const std::string& extension_id) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ // Not implemented yet.
+}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698