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

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

Issue 107803004: Add base:: to string16 in extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove a using Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_ 5 #ifndef EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_
6 #define EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_ 6 #define EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 20 matching lines...) Expand all
31 31
32 TestManagementPolicyProvider(); 32 TestManagementPolicyProvider();
33 explicit TestManagementPolicyProvider(int prohibited_actions); 33 explicit TestManagementPolicyProvider(int prohibited_actions);
34 34
35 void SetProhibitedActions(int prohibited_actions); 35 void SetProhibitedActions(int prohibited_actions);
36 void SetDisableReason(Extension::DisableReason reason); 36 void SetDisableReason(Extension::DisableReason reason);
37 37
38 virtual std::string GetDebugPolicyProviderName() const OVERRIDE; 38 virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
39 39
40 virtual bool UserMayLoad(const Extension* extension, 40 virtual bool UserMayLoad(const Extension* extension,
41 string16* error) const OVERRIDE; 41 base::string16* error) const OVERRIDE;
42 42
43 virtual bool UserMayModifySettings(const Extension* extension, 43 virtual bool UserMayModifySettings(const Extension* extension,
44 string16* error) const OVERRIDE; 44 base::string16* error) const OVERRIDE;
45 45
46 virtual bool MustRemainEnabled(const Extension* extension, 46 virtual bool MustRemainEnabled(const Extension* extension,
47 string16* error) const OVERRIDE; 47 base::string16* error) const OVERRIDE;
48 48
49 virtual bool MustRemainDisabled(const Extension* extension, 49 virtual bool MustRemainDisabled(const Extension* extension,
50 Extension::DisableReason* reason, 50 Extension::DisableReason* reason,
51 string16* error) const OVERRIDE; 51 base::string16* error) const OVERRIDE;
52 52
53 private: 53 private:
54 bool may_load_; 54 bool may_load_;
55 bool may_modify_status_; 55 bool may_modify_status_;
56 bool must_remain_enabled_; 56 bool must_remain_enabled_;
57 bool must_remain_disabled_; 57 bool must_remain_disabled_;
58 Extension::DisableReason disable_reason_; 58 Extension::DisableReason disable_reason_;
59 59
60 string16 error_message_; 60 base::string16 error_message_;
61 }; 61 };
62 62
63 } // namespace extensions 63 } // namespace extensions
64 64
65 #endif // EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_ 65 #endif // EXTENSIONS_BROWSER_TEST_MANAGEMENT_POLICY_H_
OLDNEW
« no previous file with comments | « extensions/browser/management_policy_unittest.cc ('k') | extensions/browser/test_management_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698