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

Side by Side Diff: components/policy/core/browser/cloud/message_util.cc

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 10 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
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 "components/policy/core/browser/cloud/message_util.h" 5 #include "components/policy/core/browser/cloud/message_util.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "grit/components_strings.h" 8 #include "components/strings/grit/components_strings.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 10
11 namespace policy { 11 namespace policy {
12 12
13 namespace { 13 namespace {
14 14
15 int GetIDSForDMStatus(DeviceManagementStatus status) { 15 int GetIDSForDMStatus(DeviceManagementStatus status) {
16 switch (status) { 16 switch (status) {
17 case DM_STATUS_SUCCESS: 17 case DM_STATUS_SUCCESS:
18 return IDS_POLICY_DM_STATUS_SUCCESS; 18 return IDS_POLICY_DM_STATUS_SUCCESS;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 return l10n_util::GetStringFUTF16( 132 return l10n_util::GetStringFUTF16(
133 IDS_POLICY_STORE_STATUS_VALIDATION_ERROR, 133 IDS_POLICY_STORE_STATUS_VALIDATION_ERROR,
134 l10n_util::GetStringUTF16( 134 l10n_util::GetStringUTF16(
135 GetIDSForValidationStatus(validation_status))); 135 GetIDSForValidationStatus(validation_status)));
136 } 136 }
137 137
138 return l10n_util::GetStringUTF16(GetIDSForStoreStatus(store_status)); 138 return l10n_util::GetStringUTF16(GetIDSForStoreStatus(store_status));
139 } 139 }
140 140
141 } // namespace policy 141 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698