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

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

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 #include "chrome/browser/extensions/test_management_policy.h" 5 #include "chrome/browser/extensions/test_management_policy.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 TestManagementPolicyProvider::TestManagementPolicyProvider() 10 TestManagementPolicyProvider::TestManagementPolicyProvider()
11 : may_load_(true), 11 : may_load_(true),
12 may_modify_status_(true), 12 may_modify_status_(true),
13 must_remain_enabled_(false) { 13 must_remain_enabled_(false) {
14 error_message_ = UTF8ToUTF16(expected_error()); 14 error_message_ = UTF8ToUTF16(expected_error());
15 } 15 }
16 16
17 TestManagementPolicyProvider::TestManagementPolicyProvider( 17 TestManagementPolicyProvider::TestManagementPolicyProvider(
(...skipping 27 matching lines...) Expand all
45 return may_modify_status_; 45 return may_modify_status_;
46 } 46 }
47 47
48 bool TestManagementPolicyProvider::MustRemainEnabled(const Extension* extension, 48 bool TestManagementPolicyProvider::MustRemainEnabled(const Extension* extension,
49 string16* error) const { 49 string16* error) const {
50 if (error && must_remain_enabled_) 50 if (error && must_remain_enabled_)
51 *error = error_message_; 51 *error = error_message_;
52 return must_remain_enabled_; 52 return must_remain_enabled_;
53 } 53 }
54 } // namespace 54 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/extensions/startup_helper.cc ('k') | chrome/browser/extensions/theme_installed_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698