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

Unified Diff: chrome/tools/mac_helpers/infoplist_strings_util.mm

Issue 5992006: Move data pack from base to app (it's just part of the resource bundle system... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | webkit/support/platform_support_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/mac_helpers/infoplist_strings_util.mm
===================================================================
--- chrome/tools/mac_helpers/infoplist_strings_util.mm (revision 69975)
+++ chrome/tools/mac_helpers/infoplist_strings_util.mm (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,7 +11,7 @@
#include <stdio.h>
#include <unistd.h>
-#include "base/data_pack.h"
+#include "app/data_pack.h"
#include "base/file_path.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/scoped_ptr.h"
@@ -51,16 +51,16 @@
return nil;
}
-base::DataPack* LoadResourceDataPack(const char* dir_path,
- const char* branding_strings_name,
- const char* locale_name) {
- base::DataPack* resource_pack = NULL;
+app::DataPack* LoadResourceDataPack(const char* dir_path,
+ const char* branding_strings_name,
+ const char* locale_name) {
+ ase::DataPack* resource_pack = NULL;
NSString* resource_path = [NSString stringWithFormat:@"%s/%s_%s.pak",
dir_path, branding_strings_name, locale_name];
if (resource_path) {
FilePath resources_pak_path([resource_path fileSystemRepresentation]);
- resource_pack = new base::DataPack;
+ resource_pack = new ase::DataPack;
bool success = resource_pack->Load(resources_pak_path);
if (!success) {
delete resource_pack;
@@ -71,7 +71,7 @@
return resource_pack;
}
-NSString* LoadStringFromDataPack(base::DataPack* data_pack,
+NSString* LoadStringFromDataPack(ase::DataPack* data_pack,
const char* data_pack_lang,
uint32_t resource_id,
const char* resource_id_str) {
@@ -204,7 +204,7 @@
const char* cur_lang = lang_list[loop];
// Open the branded string pak file
- scoped_ptr<base::DataPack> branded_data_pack(
+ scoped_ptr<ase::DataPack> branded_data_pack(
LoadResourceDataPack(grit_output_dir,
branding_strings_name,
cur_lang));
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | webkit/support/platform_support_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698