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

Side by Side Diff: chrome/browser/policy/policy_status_info.cc

Issue 7941008: Cosmetic cleanups in chrome/browser/policy/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload was broken? Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/policy/policy_status_info.h" 5 #include "chrome/browser/policy/policy_status_info.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return ASCIIToUTF16(strings[source_type]); 76 return ASCIIToUTF16(strings[source_type]);
77 } 77 }
78 78
79 // static 79 // static
80 string16 PolicyStatusInfo::GetPolicyLevelString(PolicyLevel level) { 80 string16 PolicyStatusInfo::GetPolicyLevelString(PolicyLevel level) {
81 static const char* strings[] = { "mandatory", "recommended", "undefined" }; 81 static const char* strings[] = { "mandatory", "recommended", "undefined" };
82 DCHECK(static_cast<size_t>(level) < arraysize(strings)); 82 DCHECK(static_cast<size_t>(level) < arraysize(strings));
83 return ASCIIToUTF16(strings[level]); 83 return ASCIIToUTF16(strings[level]);
84 } 84 }
85 85
86 } // namespace policy 86 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_status_info.h ('k') | chrome/browser/policy/testing_cloud_policy_subsystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698