summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/test/integration/extension_settings_helper.h
blob: c00a9a063cb80def5c3f95251557712a5b19a8cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 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.

#ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_
#define CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_

#include <string>

class Profile;
namespace base {
class DictionaryValue;
}

namespace extension_settings_helper {

// Calls Set() with |settings| for |profile| and the extension with ID |id|.
void SetExtensionSettings(
    Profile* profile,
    const std::string& id,
    const base::DictionaryValue& settings);

// Calls Set() with |settings| for all profiles the extension with ID |id|.
void SetExtensionSettingsForAllProfiles(
    const std::string& id, const base::DictionaryValue& settings);

// Returns whether the extension settings are the same across all profiles.
bool AllExtensionSettingsSameAsVerifier();

}  // namespace extension_settings_helper

#endif  // CHROME_BROWSER_SYNC_TEST_INTEGRATION_EXTENSION_SETTINGS_HELPER_H_