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