summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/script_badge_controller_unittest.cc
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 17:22:39 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 17:22:39 +0000
commit060d49788f6812ae1a6e82d7759699cc4538a3c3 (patch)
tree1f00dacedf9bc39f38ef0671810354f07dcccef8 /chrome/browser/extensions/script_badge_controller_unittest.cc
parent2e695a8e4cfcc006d0d02323c8c1115b98eb2faa (diff)
downloadchromium_src-060d49788f6812ae1a6e82d7759699cc4538a3c3.zip
chromium_src-060d49788f6812ae1a6e82d7759699cc4538a3c3.tar.gz
chromium_src-060d49788f6812ae1a6e82d7759699cc4538a3c3.tar.bz2
Refactored SettingsFrontend and forwarding of calls to the backends.
Added a SettingsNamespaceFrontend interface for namespace frontends, that allows different namespaces to forward StorageCallbacks in their own way. The LOCAL and SYNC namespaces use an implementation that does the same as before, but the new MANAGED namespace can now be implemented using a ValueStore that loads settings from policies, in the UI thread. BUG=108992 TEST=Everything works as before, all tests are green Review URL: https://chromiumcodereview.appspot.com/10784035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/script_badge_controller_unittest.cc')
-rw-r--r--chrome/browser/extensions/script_badge_controller_unittest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/script_badge_controller_unittest.cc b/chrome/browser/extensions/script_badge_controller_unittest.cc
index cf5a8b0..8b0623b 100644
--- a/chrome/browser/extensions/script_badge_controller_unittest.cc
+++ b/chrome/browser/extensions/script_badge_controller_unittest.cc
@@ -35,8 +35,8 @@ namespace {
class ScriptBadgeControllerTest : public TabContentsTestHarness {
public:
ScriptBadgeControllerTest()
- : ui_thread_(BrowserThread::UI, MessageLoop::current()) {
- }
+ : ui_thread_(BrowserThread::UI, MessageLoop::current()),
+ file_thread_(BrowserThread::FILE, MessageLoop::current()) {}
virtual void SetUp() OVERRIDE {
// Note that this sets a PageActionController into the
@@ -82,6 +82,7 @@ class ScriptBadgeControllerTest : public TabContentsTestHarness {
private:
content::TestBrowserThread ui_thread_;
+ content::TestBrowserThread file_thread_;
};
struct CountingNotificationObserver : public content::NotificationObserver {