| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/l10n_util.h" |
| 5 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 6 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 7 #include "base/string16.h" | 8 #include "base/string16.h" |
| 8 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 9 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 10 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/common/l10n_util.h" | |
| 13 #include "chrome/plugin/npobject_util.h" | 13 #include "chrome/plugin/npobject_util.h" |
| 14 #include "googleurl/src/url_util.h" | 14 #include "googleurl/src/url_util.h" |
| 15 #include "webkit/glue/webkit_glue.h" | 15 #include "webkit/glue/webkit_glue.h" |
| 16 | 16 |
| 17 namespace webkit_glue { | 17 namespace webkit_glue { |
| 18 | 18 |
| 19 bool GetExeDirectory(std::wstring *path) { | 19 bool GetExeDirectory(std::wstring *path) { |
| 20 return PathService::Get(base::DIR_EXE, path); | 20 return PathService::Get(base::DIR_EXE, path); |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 39 (!parsed_command_line.HasSwitch(switches::kRendererProcess) && | 39 (!parsed_command_line.HasSwitch(switches::kRendererProcess) && |
| 40 !parsed_command_line.HasSwitch(switches::kPluginProcess))); | 40 !parsed_command_line.HasSwitch(switches::kPluginProcess))); |
| 41 return lang; | 41 return lang; |
| 42 } | 42 } |
| 43 | 43 |
| 44 string16 GetLocalizedString(int message_id) { | 44 string16 GetLocalizedString(int message_id) { |
| 45 return WideToUTF16(l10n_util::GetString(message_id)); | 45 return WideToUTF16(l10n_util::GetString(message_id)); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace webkit_glue | 48 } // namespace webkit_glue |
| OLD | NEW |