From 87474c1a9db80986fab7aeea49b72dd3bb74f159 Mon Sep 17 00:00:00 2001 From: "kalman@chromium.org" Date: Fri, 21 Oct 2011 02:12:06 +0000 Subject: Add onChanged events to the extension settings API, both from sync and between split mode background pages. BUG=97545 TEST=Updated ExtensionSettingsStorageUnittest, ExtensionSettingsSyncUnittest, ExtensionSettingsApitest Review URL: http://codereview.chromium.org/8177022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106660 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_settings_frontend_unittest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/extensions/extension_settings_frontend_unittest.cc') diff --git a/chrome/browser/extensions/extension_settings_frontend_unittest.cc b/chrome/browser/extensions/extension_settings_frontend_unittest.cc index 076eda3..d245850 100644 --- a/chrome/browser/extensions/extension_settings_frontend_unittest.cc +++ b/chrome/browser/extensions/extension_settings_frontend_unittest.cc @@ -23,13 +23,13 @@ class ExtensionSettingsFrontendTest : public testing::Test { virtual void SetUp() OVERRIDE { ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); - frontend_.reset(new ExtensionSettingsFrontend(temp_dir_.path())); profile_.reset(new TestingProfile(temp_dir_.path())); + frontend_.reset(new ExtensionSettingsFrontend(profile_.get())); } virtual void TearDown() OVERRIDE { - profile_.reset(); frontend_.reset(); + profile_.reset(); } protected: @@ -45,8 +45,8 @@ class ExtensionSettingsFrontendTest : public testing::Test { } ScopedTempDir temp_dir_; - scoped_ptr frontend_; scoped_ptr profile_; + scoped_ptr frontend_; private: // Intended as a ExtensionSettingsFrontend::BackendCallback from GetBackend. @@ -77,7 +77,7 @@ TEST_F(ExtensionSettingsFrontendTest, SettingsPreservedAcrossReconstruction) { ASSERT_FALSE(result.HasError()); EXPECT_FALSE(result.GetSettings()->empty()); - frontend_.reset(new ExtensionSettingsFrontend(temp_dir_.path())); + frontend_.reset(new ExtensionSettingsFrontend(profile_.get())); GetBackend(&backend); storage = backend->GetStorage(id); -- cgit v1.1