diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 05:56:05 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 05:56:05 +0000 |
commit | 426d0393942b3886c94d4fe27e22b1a132d8b41b (patch) | |
tree | 91c907cb212c2e43533f7b4e9ad85c6aa41a0864 /chrome/tools | |
parent | be8fd116e295fd7ef6c75e4dd717017d68c7fd57 (diff) | |
download | chromium_src-426d0393942b3886c94d4fe27e22b1a132d8b41b.zip chromium_src-426d0393942b3886c94d4fe27e22b1a132d8b41b.tar.gz chromium_src-426d0393942b3886c94d4fe27e22b1a132d8b41b.tar.bz2 |
Move data pack from base to app (it's just part of the resource bundle system).
TEST=it compiles
BUG=none
Review URL: http://codereview.chromium.org/5992006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70038 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rw-r--r-- | chrome/tools/mac_helpers/infoplist_strings_util.mm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/tools/mac_helpers/infoplist_strings_util.mm b/chrome/tools/mac_helpers/infoplist_strings_util.mm index d086444..727932f 100644 --- a/chrome/tools/mac_helpers/infoplist_strings_util.mm +++ b/chrome/tools/mac_helpers/infoplist_strings_util.mm @@ -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 @@ NSString* ApplicationVersionString(const char* version_file_path) { 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) { + app::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 app::DataPack; bool success = resource_pack->Load(resources_pak_path); if (!success) { delete resource_pack; @@ -71,7 +71,7 @@ base::DataPack* LoadResourceDataPack(const char* dir_path, return resource_pack; } -NSString* LoadStringFromDataPack(base::DataPack* data_pack, +NSString* LoadStringFromDataPack(app::DataPack* data_pack, const char* data_pack_lang, uint32_t resource_id, const char* resource_id_str) { @@ -204,7 +204,7 @@ int main(int argc, char* const argv[]) { const char* cur_lang = lang_list[loop]; // Open the branded string pak file - scoped_ptr<base::DataPack> branded_data_pack( + scoped_ptr<app::DataPack> branded_data_pack( LoadResourceDataPack(grit_output_dir, branding_strings_name, cur_lang)); |