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

Side by Side Diff: app/resource_bundle_posix.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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
« no previous file with comments | « app/resource_bundle_linux.cc ('k') | app/resource_bundle_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/resource_bundle.h" 5 #include "app/resource_bundle.h"
6 6
7 #include "app/gfx/font.h"
8 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
9 #include "base/data_pack.h" 8 #include "base/data_pack.h"
10 #include "base/logging.h" 9 #include "base/logging.h"
11 #include "base/string16.h" 10 #include "base/string16.h"
12 #include "base/string_piece.h" 11 #include "base/string_piece.h"
12 #include "gfx/font.h"
13 13
14 namespace { 14 namespace {
15 15
16 base::DataPack* LoadResourcesDataPak(FilePath resources_pak_path) { 16 base::DataPack* LoadResourcesDataPak(FilePath resources_pak_path) {
17 base::DataPack* resources_pak = new base::DataPack; 17 base::DataPack* resources_pak = new base::DataPack;
18 bool success = resources_pak->Load(resources_pak_path); 18 bool success = resources_pak->Load(resources_pak_path);
19 if (!success) { 19 if (!success) {
20 delete resources_pak; 20 delete resources_pak;
21 resources_pak = NULL; 21 resources_pak = NULL;
22 } 22 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 FilePath locale_file_path = GetLocaleFilePath(app_locale); 92 FilePath locale_file_path = GetLocaleFilePath(app_locale);
93 if (locale_file_path.empty()) { 93 if (locale_file_path.empty()) {
94 // It's possible that there is no locale.pak. 94 // It's possible that there is no locale.pak.
95 NOTREACHED(); 95 NOTREACHED();
96 return std::string(); 96 return std::string();
97 } 97 }
98 locale_resources_data_ = LoadResourcesDataPak(locale_file_path); 98 locale_resources_data_ = LoadResourcesDataPak(locale_file_path);
99 CHECK(locale_resources_data_) << "failed to load locale.pak"; 99 CHECK(locale_resources_data_) << "failed to load locale.pak";
100 return app_locale; 100 return app_locale;
101 } 101 }
OLDNEW
« no previous file with comments | « app/resource_bundle_linux.cc ('k') | app/resource_bundle_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698