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

Side by Side Diff: components/pdf/renderer/pdf_resource_util.cc

Issue 601733002: Rename component_resources.h to components_resources.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: output_name hack Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/pdf/renderer/pdf_resource_util.h" 5 #include "components/pdf/renderer/pdf_resource_util.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "components/strings/grit/components_strings.h" 8 #include "components/strings/grit/components_strings.h"
9 #include "grit/component_scaled_resources.h" 9 #include "grit/components_scaled_resources.h"
10 #include "ui/base/l10n/l10n_util.h" 10 #include "ui/base/l10n/l10n_util.h"
11 #include "ui/base/resource/resource_bundle.h" 11 #include "ui/base/resource/resource_bundle.h"
12 12
13 namespace { 13 namespace {
14 14
15 struct ResourceImageInfo { 15 struct ResourceImageInfo {
16 PP_ResourceImage pp_id; 16 PP_ResourceImage pp_id;
17 int res_id; 17 int res_id;
18 }; 18 };
19 19
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 break; 104 break;
105 case PP_RESOURCESTRING_PDFPROGRESSLOADING: 105 case PP_RESOURCESTRING_PDFPROGRESSLOADING:
106 resource_id = IDS_PDF_PROGRESS_LOADING; 106 resource_id = IDS_PDF_PROGRESS_LOADING;
107 break; 107 break;
108 } 108 }
109 109
110 return base::UTF16ToUTF8(l10n_util::GetStringUTF16(resource_id)); 110 return base::UTF16ToUTF8(l10n_util::GetStringUTF16(resource_id));
111 } 111 }
112 112
113 } // namespace pdf 113 } // namespace pdf
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698