• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_
7 
8 #include <string>
9 
10 class Profile;
11 namespace base {
12 class DictionaryValue;
13 }
14 
15 namespace extension_settings_helper {
16 
17 // Calls Set() with |settings| for |profile| and the extension with ID |id|.
18 void SetExtensionSettings(
19     Profile* profile,
20     const std::string& id,
21     const base::DictionaryValue& settings);
22 
23 // Calls Set() with |settings| for all profiles the extension with ID |id|.
24 void SetExtensionSettingsForAllProfiles(
25     const std::string& id, const base::DictionaryValue& settings);
26 
27 // Returns whether the extension settings are the same across all profiles.
28 bool AllExtensionSettingsSameAsVerifier();
29 
30 }  // namespace extension_settings_helper
31 
32 #endif  // CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_
33