OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "apps/shell/app/shell_main_delegate.h" | 5 #include "apps/shell/app/shell_main_delegate.h" |
6 | 6 |
7 #include "apps/shell/browser/shell_content_browser_client.h" | 7 #include "apps/shell/browser/shell_content_browser_client.h" |
8 #include "apps/shell/common/shell_content_client.h" | 8 #include "apps/shell/common/shell_content_client.h" |
9 #include "apps/shell/renderer/shell_content_renderer_client.h" | 9 #include "apps/shell/renderer/shell_content_renderer_client.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 void ShellMainDelegate::InitializeResourceBundle() { | 91 void ShellMainDelegate::InitializeResourceBundle() { |
92 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); | 92 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); |
93 | 93 |
94 // The extensions system needs manifest data from the Chrome PAK file. | 94 // The extensions system needs manifest data from the Chrome PAK file. |
95 // TODO(jamescook): app_shell needs its own manifest data file. | 95 // TODO(jamescook): app_shell needs its own manifest data file. |
96 base::FilePath resources_pack_path; | 96 base::FilePath resources_pack_path; |
97 PathService::Get(chrome::FILE_RESOURCES_PACK, &resources_pack_path); | 97 PathService::Get(chrome::FILE_RESOURCES_PACK, &resources_pack_path); |
98 ResourceBundle::GetSharedInstance().AddDataPackFromPath( | 98 ResourceBundle::GetSharedInstance().AddDataPackFromPath( |
99 resources_pack_path, ui::SCALE_FACTOR_NONE); | 99 resources_pack_path, ui::SCALE_FACTOR_NONE); |
100 // The dev tool needs shell_devtools_discovery_page.html from | 100 base::FilePath pak_dir; |
101 // content_shell.pak file. | |
102 base::FilePath pak_file, pak_dir; | |
103 PathService::Get(base::DIR_MODULE, &pak_dir); | 101 PathService::Get(base::DIR_MODULE, &pak_dir); |
104 pak_file = pak_dir.Append(FILE_PATH_LITERAL("content_shell.pak")); | |
105 ResourceBundle::GetSharedInstance().AddDataPackFromPath( | 102 ResourceBundle::GetSharedInstance().AddDataPackFromPath( |
106 pak_file, ui::SCALE_FACTOR_NONE); | 103 pak_dir.Append(FILE_PATH_LITERAL("app_shell.pak")), |
| 104 ui::SCALE_FACTOR_NONE); |
107 } | 105 } |
108 | 106 |
109 } // namespace apps | 107 } // namespace apps |
OLD | NEW |