Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: chrome/browser/sync/test/integration/sync_extension_helper.h

Issue 69683002: Merge 233885 "Revert 231221 - "Remove enabled/disabled state fro..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_SYNC_EXTENSION_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 const std::string& name, 37 const std::string& name,
38 extensions::Manifest::Type type); 38 extensions::Manifest::Type type);
39 39
40 // Uninstalls the extension with the given name from |profile|. 40 // Uninstalls the extension with the given name from |profile|.
41 void UninstallExtension(Profile* profile, const std::string& name); 41 void UninstallExtension(Profile* profile, const std::string& name);
42 42
43 // Returns a vector containing the names of all currently installed extensions 43 // Returns a vector containing the names of all currently installed extensions
44 // on |profile|. 44 // on |profile|.
45 std::vector<std::string> GetInstalledExtensionNames(Profile* profile) const; 45 std::vector<std::string> GetInstalledExtensionNames(Profile* profile) const;
46 46
47 // Enables the extension with the given name on |profile|.
48 void EnableExtension(Profile* profile, const std::string& name);
49
50 // Disables the extension with the given name on |profile|.
51 void DisableExtension(Profile* profile, const std::string& name);
52
47 // Returns true if the extension with the given name is enabled on |profile|. 53 // Returns true if the extension with the given name is enabled on |profile|.
48 bool IsExtensionEnabled(Profile* profile, const std::string& name) const; 54 bool IsExtensionEnabled(Profile* profile, const std::string& name) const;
49 55
50 // Enables the extension with the given name to run in incognito mode 56 // Enables the extension with the given name to run in incognito mode
51 void IncognitoEnableExtension(Profile* profile, const std::string& name); 57 void IncognitoEnableExtension(Profile* profile, const std::string& name);
52 58
53 // Disables the extension with the given name from running in incognito mode 59 // Disables the extension with the given name from running in incognito mode
54 void IncognitoDisableExtension(Profile* profile, const std::string& name); 60 void IncognitoDisableExtension(Profile* profile, const std::string& name);
55 61
56 // Returns true iff the extension is enabled in incognito mode on |profile|. 62 // Returns true iff the extension is enabled in incognito mode on |profile|.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 115
110 ProfileExtensionNameMap profile_extensions_; 116 ProfileExtensionNameMap profile_extensions_;
111 StringMap id_to_name_; 117 StringMap id_to_name_;
112 TypeMap id_to_type_; 118 TypeMap id_to_type_;
113 bool setup_completed_; 119 bool setup_completed_;
114 120
115 DISALLOW_COPY_AND_ASSIGN(SyncExtensionHelper); 121 DISALLOW_COPY_AND_ASSIGN(SyncExtensionHelper);
116 }; 122 };
117 123
118 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_ 124 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698