Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb4cae0

Browse files
committed
resource pak name should be nw.pak
1 parent 6cea1d9 commit eb4cae0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/paths_mac.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void OverrideChildProcessPath() {
6868

6969
FilePath GetResourcesPakFilePath() {
7070
NSString* pak_path =
71-
[base::mac::FrameworkBundle() pathForResource:@"content_shell"
71+
[base::mac::FrameworkBundle() pathForResource:@"nw"
7272
ofType:@"pak"];
7373

7474
return FilePath([pak_path fileSystemRepresentation]);

src/shell_content_browser_client.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ void ShellContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
8787
FilePath pak_file;
8888
DCHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &pak_file));
8989
pak_file = pak_file.Append(FILE_PATH_LITERAL("paks"));
90-
pak_file = pak_file.Append(FILE_PATH_LITERAL("content_shell.pak"));
90+
pak_file = pak_file.Append(FILE_PATH_LITERAL("nw.pak"));
9191

9292
base::PlatformFile f =
9393
base::CreatePlatformFile(pak_file, flags, NULL, NULL);
9494
if (f == base::kInvalidPlatformFileValue) {
9595
NOTREACHED() << "Failed to open file when creating renderer process: "
96-
<< "content_shell.pak";
96+
<< "nw.pak";
9797
}
9898
mappings->push_back(std::pair<base::GlobalDescriptors::Key, int>(
9999
kShellPakDescriptor, f));

src/shell_main_delegate.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void ShellMainDelegate::InitializeResourceBundle() {
167167
PathService::Get(base::DIR_MODULE, &pak_dir);
168168
#endif
169169

170-
pak_file = pak_dir.Append(FILE_PATH_LITERAL("content_shell.pak"));
170+
pak_file = pak_dir.Append(FILE_PATH_LITERAL("nw.pak"));
171171
#endif
172172
ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file);
173173
}

0 commit comments

Comments
 (0)