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

Side by Side Diff: chrome/browser/extensions/test_management_policy.h

Issue 10542023: Disable modifying extensions when in managed mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed Evan's nits Created 8 years, 6 months 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_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 static std::string expected_error() { 26 static std::string expected_error() {
27 return "Action prohibited by test provider."; 27 return "Action prohibited by test provider.";
28 } 28 }
29 29
30 TestManagementPolicyProvider(); 30 TestManagementPolicyProvider();
31 explicit TestManagementPolicyProvider(int prohibited_actions); 31 explicit TestManagementPolicyProvider(int prohibited_actions);
32 32
33 void SetProhibitedActions(int prohibited_actions); 33 void SetProhibitedActions(int prohibited_actions);
34 34
35 virtual std::string GetPolicyProviderName() const OVERRIDE; 35 virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
36 36
37 virtual bool UserMayLoad(const Extension* extension, 37 virtual bool UserMayLoad(const Extension* extension,
38 string16* error) const OVERRIDE; 38 string16* error) const OVERRIDE;
39 39
40 virtual bool UserMayModifySettings(const Extension* extension, 40 virtual bool UserMayModifySettings(const Extension* extension,
41 string16* error) const OVERRIDE; 41 string16* error) const OVERRIDE;
42 42
43 virtual bool MustRemainEnabled(const Extension* extension, 43 virtual bool MustRemainEnabled(const Extension* extension,
44 string16* error) const OVERRIDE; 44 string16* error) const OVERRIDE;
45 45
46 private: 46 private:
47 bool may_load_; 47 bool may_load_;
48 bool may_modify_status_; 48 bool may_modify_status_;
49 bool must_remain_enabled_; 49 bool must_remain_enabled_;
50 50
51 string16 error_message_; 51 string16 error_message_;
52 }; 52 };
53 } // namespace 53 } // namespace
54 #endif // CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_ 54 #endif // CHROME_BROWSER_EXTENSIONS_TEST_MANAGEMENT_POLICY_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/management_policy.cc ('k') | chrome/browser/extensions/test_management_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698