summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-05 23:38:56 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-05 23:38:56 +0000
commita92b86497b6ee02c99a2e4b4a8cf7fb458ab6310 (patch)
tree146a5bc307f3ff64a7d99d54630b0639cfb9eddc /chrome
parent33f61ef7d4790c6800d3f5048b7c21594f37c227 (diff)
downloadchromium_src-a92b86497b6ee02c99a2e4b4a8cf7fb458ab6310.zip
chromium_src-a92b86497b6ee02c99a2e4b4a8cf7fb458ab6310.tar.gz
chromium_src-a92b86497b6ee02c99a2e4b4a8cf7fb458ab6310.tar.bz2
Move l10n_util to app/
http://crbug.com/11387 Review URL: http://codereview.chromium.org/109043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15352 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/alternate_nav_url_fetcher.cc2
-rw-r--r--chrome/browser/app_modal_dialog_gtk.cc2
-rw-r--r--chrome/browser/app_modal_dialog_mac.mm2
-rw-r--r--chrome/browser/autocomplete/autocomplete.cc2
-rw-r--r--chrome/browser/autocomplete/autocomplete_accessibility.cc2
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_win.cc4
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view_win.cc2
-rw-r--r--chrome/browser/autocomplete/keyword_provider.cc2
-rw-r--r--chrome/browser/autocomplete/search_provider.cc2
-rw-r--r--chrome/browser/back_forward_menu_model.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_codec.cc3
-rw-r--r--chrome/browser/bookmarks/bookmark_context_menu.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_context_menu_gtk.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_context_menu_win.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_folder_tree_model.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_html_writer.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_menu_controller.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_model.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_table_model.cc2
-rw-r--r--chrome/browser/bookmarks/bookmark_utils.cc2
-rw-r--r--chrome/browser/browser.cc2
-rw-r--r--chrome/browser/browser_about_handler.cc2
-rw-r--r--chrome/browser/browser_init.cc2
-rw-r--r--chrome/browser/browser_main.cc2
-rw-r--r--chrome/browser/browser_main_win.cc2
-rw-r--r--chrome/browser/browser_process_impl.cc2
-rw-r--r--chrome/browser/browser_uitest.cc2
-rw-r--r--chrome/browser/character_encoding.cc2
-rw-r--r--chrome/browser/cocoa/find_bar_cocoa_controller.mm2
-rw-r--r--chrome/browser/cocoa/sad_tab_view.mm2
-rw-r--r--chrome/browser/cocoa/tab_strip_controller.mm2
-rw-r--r--chrome/browser/debugger/debugger_window.cc2
-rw-r--r--chrome/browser/debugger/devtools_window_win.cc2
-rw-r--r--chrome/browser/dom_ui/chrome_url_data_manager.cc2
-rw-r--r--chrome/browser/dom_ui/dom_ui.cc2
-rw-r--r--chrome/browser/dom_ui/downloads_ui.cc2
-rw-r--r--chrome/browser/dom_ui/history_ui.cc2
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc2
-rw-r--r--chrome/browser/download/download_item_model.cc2
-rw-r--r--chrome/browser/download/download_manager.cc2
-rw-r--r--chrome/browser/download/download_request_dialog_delegate_win.cc2
-rw-r--r--chrome/browser/download/download_shelf.cc2
-rw-r--r--chrome/browser/download/download_util.cc2
-rw-r--r--chrome/browser/download/save_package.cc2
-rw-r--r--chrome/browser/drag_utils.cc2
-rw-r--r--chrome/browser/encoding_menu_controller_delegate.cc2
-rw-r--r--chrome/browser/extensions/extensions_ui.cc2
-rw-r--r--chrome/browser/gtk/about_chrome_dialog.cc2
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.cc2
-rw-r--r--chrome/browser/gtk/bookmark_editor_gtk.cc2
-rw-r--r--chrome/browser/gtk/browser_toolbar_gtk.cc2
-rw-r--r--chrome/browser/gtk/dialogs_gtk.cc2
-rw-r--r--chrome/browser/gtk/download_shelf_gtk.cc2
-rw-r--r--chrome/browser/gtk/find_bar_gtk.cc2
-rw-r--r--chrome/browser/gtk/go_button_gtk.cc3
-rw-r--r--chrome/browser/gtk/menu_gtk.cc2
-rw-r--r--chrome/browser/gtk/standard_menus.cc2
-rw-r--r--chrome/browser/gtk/tabs/tab_gtk.cc2
-rw-r--r--chrome/browser/gtk/tabs/tab_renderer_gtk.cc2
-rw-r--r--chrome/browser/gtk/tabs/tab_strip_gtk.cc2
-rw-r--r--chrome/browser/hang_monitor/hung_plugin_action.cc2
-rw-r--r--chrome/browser/history/history.cc2
-rw-r--r--chrome/browser/history/query_parser.cc2
-rw-r--r--chrome/browser/history/url_database.cc2
-rw-r--r--chrome/browser/importer/firefox2_importer.cc2
-rw-r--r--chrome/browser/importer/firefox3_importer.cc2
-rw-r--r--chrome/browser/importer/ie_importer.cc2
-rw-r--r--chrome/browser/importer/importer.cc2
-rw-r--r--chrome/browser/importer/toolbar_importer.cc2
-rw-r--r--chrome/browser/input_window_dialog_win.cc2
-rw-r--r--chrome/browser/jsmessage_box_handler.cc2
-rw-r--r--chrome/browser/login_prompt.cc2
-rw-r--r--chrome/browser/password_manager/password_manager.cc2
-rw-r--r--chrome/browser/plugin_installer.cc2
-rw-r--r--chrome/browser/printing/print_view_manager.cc2
-rw-r--r--chrome/browser/process_singleton_win.cc2
-rw-r--r--chrome/browser/profile_manager.cc2
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_win.cc4
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_blocking_page.cc2
-rw-r--r--chrome/browser/search_engines/template_url.cc2
-rw-r--r--chrome/browser/search_engines/template_url_model.cc2
-rw-r--r--chrome/browser/session_history_uitest.cc2
-rw-r--r--chrome/browser/spellchecker.cc2
-rw-r--r--chrome/browser/spellchecker.h2
-rw-r--r--chrome/browser/ssl/ssl_blocking_page.cc2
-rw-r--r--chrome/browser/ssl/ssl_error_info.cc2
-rw-r--r--chrome/browser/ssl/ssl_manager.cc2
-rw-r--r--chrome/browser/ssl/ssl_policy.cc2
-rw-r--r--chrome/browser/tab_contents/infobar_delegate.cc2
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu.cc2
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu_mac.mm2
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu_win.cc2
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc2
-rw-r--r--chrome/browser/task_manager.cc2
-rw-r--r--chrome/browser/task_manager_resource_providers.cc2
-rw-r--r--chrome/browser/toolbar_model.cc2
-rw-r--r--chrome/browser/user_data_manager.cc2
-rw-r--r--chrome/browser/views/about_chrome_view.cc2
-rw-r--r--chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc2
-rw-r--r--chrome/browser/views/blocked_popup_container.cc2
-rw-r--r--chrome/browser/views/bookmark_bar_view.cc2
-rw-r--r--chrome/browser/views/bookmark_bubble_view.cc2
-rw-r--r--chrome/browser/views/bookmark_editor_view.cc2
-rw-r--r--chrome/browser/views/bug_report_view.cc2
-rw-r--r--chrome/browser/views/clear_browsing_data.cc2
-rw-r--r--chrome/browser/views/constrained_window_impl.cc2
-rw-r--r--chrome/browser/views/constrained_window_impl_interactive_uitest.cc2
-rw-r--r--chrome/browser/views/download_item_view.cc2
-rw-r--r--chrome/browser/views/download_shelf_view.cc2
-rw-r--r--chrome/browser/views/edit_keyword_controller.cc2
-rw-r--r--chrome/browser/views/external_protocol_dialog.cc2
-rw-r--r--chrome/browser/views/find_bar_view.cc2
-rw-r--r--chrome/browser/views/first_run_bubble.cc2
-rw-r--r--chrome/browser/views/first_run_customize_view.cc2
-rw-r--r--chrome/browser/views/first_run_view.cc2
-rw-r--r--chrome/browser/views/first_run_view_base.cc2
-rw-r--r--chrome/browser/views/frame/browser_view.cc2
-rw-r--r--chrome/browser/views/frame/opaque_browser_frame_view.cc2
-rw-r--r--chrome/browser/views/fullscreen_exit_bubble.cc4
-rw-r--r--chrome/browser/views/go_button.cc2
-rw-r--r--chrome/browser/views/importer_lock_view.cc2
-rw-r--r--chrome/browser/views/importer_view.cc2
-rw-r--r--chrome/browser/views/importing_progress_view.cc2
-rw-r--r--chrome/browser/views/infobars/infobars.cc2
-rw-r--r--chrome/browser/views/jsmessage_box_dialog.cc2
-rw-r--r--chrome/browser/views/keyword_editor_view.cc2
-rw-r--r--chrome/browser/views/location_bar_view.cc2
-rw-r--r--chrome/browser/views/login_view.cc2
-rw-r--r--chrome/browser/views/new_profile_dialog.cc2
-rw-r--r--chrome/browser/views/options/advanced_page_view.cc2
-rw-r--r--chrome/browser/views/options/content_page_view.cc2
-rw-r--r--chrome/browser/views/options/cookies_view.cc2
-rw-r--r--chrome/browser/views/options/exceptions_page_view.cc2
-rw-r--r--chrome/browser/views/options/fonts_languages_window_view.cc2
-rw-r--r--chrome/browser/views/options/fonts_page_view.cc2
-rw-r--r--chrome/browser/views/options/general_page_view.cc2
-rw-r--r--chrome/browser/views/options/language_combobox_model.cc2
-rw-r--r--chrome/browser/views/options/languages_page_view.cc2
-rw-r--r--chrome/browser/views/options/options_group_view.cc2
-rw-r--r--chrome/browser/views/options/options_window_view.cc2
-rw-r--r--chrome/browser/views/options/passwords_exceptions_window_view.cc2
-rw-r--r--chrome/browser/views/options/passwords_page_view.cc2
-rw-r--r--chrome/browser/views/page_info_window.cc2
-rw-r--r--chrome/browser/views/repost_form_warning_view.cc2
-rw-r--r--chrome/browser/views/restart_message_box.cc2
-rw-r--r--chrome/browser/views/sad_tab_view.cc2
-rw-r--r--chrome/browser/views/select_profile_dialog.cc2
-rw-r--r--chrome/browser/views/shelf_item_dialog.cc2
-rw-r--r--chrome/browser/views/shell_dialogs_win.cc2
-rw-r--r--chrome/browser/views/status_bubble_views.cc4
-rw-r--r--chrome/browser/views/tabs/tab.cc2
-rw-r--r--chrome/browser/views/tabs/tab_renderer.cc2
-rw-r--r--chrome/browser/views/tabs/tab_strip.cc2
-rw-r--r--chrome/browser/views/toolbar_view.cc2
-rw-r--r--chrome/browser/views/uninstall_dialog.cc4
-rw-r--r--chrome/browser/views/user_data_dir_dialog.cc2
-rw-r--r--chrome/browser/webdata/web_database.cc2
-rw-r--r--chrome/chrome.gyp12
-rw-r--r--chrome/common/child_process_info.cc2
-rw-r--r--chrome/common/common.vcproj16
-rw-r--r--chrome/common/common_glue.cc2
-rw-r--r--chrome/common/gfx/chrome_canvas.cc2
-rw-r--r--chrome/common/gfx/chrome_canvas_win.cc2
-rw-r--r--chrome/common/gfx/chrome_font_win.cc2
-rw-r--r--chrome/common/l10n_util.cc745
-rw-r--r--chrome/common/l10n_util.h370
-rw-r--r--chrome/common/l10n_util_posix.cc14
-rw-r--r--chrome/common/l10n_util_unittest.cc435
-rw-r--r--chrome/common/l10n_util_win.cc120
-rw-r--r--chrome/common/l10n_util_win.h51
-rw-r--r--chrome/common/os_exchange_data.cc2
-rw-r--r--chrome/common/platform_util_mac.mm2
-rw-r--r--chrome/common/pref_service.cc2
-rw-r--r--chrome/common/security_filter_peer.cc2
-rw-r--r--chrome/common/time_format.cc2
-rw-r--r--chrome/common/time_format_unittest.cc2
-rw-r--r--chrome/common/win_util.cc4
-rw-r--r--chrome/renderer/localized_error.cc2
-rw-r--r--chrome/renderer/render_view.cc2
-rw-r--r--chrome/renderer/renderer_main.cc2
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc2
-rw-r--r--chrome/test/accessibility/accessibility_tests.cc2
-rw-r--r--chrome/test/accessibility/accessibility_util.cc2
-rw-r--r--chrome/test/unit/unittests.vcproj8
-rw-r--r--chrome/views/accelerator.cc2
-rw-r--r--chrome/views/controls/button/button_dropdown.cc2
-rw-r--r--chrome/views/controls/button/menu_button.cc2
-rw-r--r--chrome/views/controls/button/native_button.cc2
-rw-r--r--chrome/views/controls/button/text_button.cc2
-rw-r--r--chrome/views/controls/combo_box.cc2
-rw-r--r--chrome/views/controls/label.cc2
-rw-r--r--chrome/views/controls/label_unittest.cc2
-rw-r--r--chrome/views/controls/menu/chrome_menu.cc4
-rw-r--r--chrome/views/controls/menu/menu.cc4
-rw-r--r--chrome/views/controls/message_box_view.cc2
-rw-r--r--chrome/views/controls/native_control.cc2
-rw-r--r--chrome/views/controls/native_control_win.cc2
-rw-r--r--chrome/views/controls/scrollbar/bitmap_scroll_bar.cc2
-rw-r--r--chrome/views/controls/tabbed_pane.cc2
-rw-r--r--chrome/views/controls/table/table_view.cc2
-rw-r--r--chrome/views/controls/table/table_view.h2
-rw-r--r--chrome/views/controls/text_field.cc4
-rw-r--r--chrome/views/controls/tree/tree_view.cc4
-rw-r--r--chrome/views/view.cc2
-rw-r--r--chrome/views/widget/aero_tooltip_manager.cc6
-rw-r--r--chrome/views/widget/tooltip_manager.cc4
-rw-r--r--chrome/views/window/dialog_client_view.cc2
-rw-r--r--chrome/views/window/window_win.cc2
208 files changed, 222 insertions, 1975 deletions
diff --git a/chrome/browser/alternate_nav_url_fetcher.cc b/chrome/browser/alternate_nav_url_fetcher.cc
index 452c4c6..65a98b3 100644
--- a/chrome/browser/alternate_nav_url_fetcher.cc
+++ b/chrome/browser/alternate_nav_url_fetcher.cc
@@ -4,11 +4,11 @@
#include "chrome/browser/alternate_nav_url_fetcher.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/app_modal_dialog_gtk.cc b/chrome/browser/app_modal_dialog_gtk.cc
index 203ae39..99ea2f5 100644
--- a/chrome/browser/app_modal_dialog_gtk.cc
+++ b/chrome/browser/app_modal_dialog_gtk.cc
@@ -6,11 +6,11 @@
#include <gtk/gtk.h>
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_contents_view.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/app_modal_dialog_mac.mm b/chrome/browser/app_modal_dialog_mac.mm
index 77823824..6df038f 100644
--- a/chrome/browser/app_modal_dialog_mac.mm
+++ b/chrome/browser/app_modal_dialog_mac.mm
@@ -6,8 +6,8 @@
#import <Cocoa/Cocoa.h>
+#include "app/l10n_util.h"
#include "base/sys_string_conversions.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/autocomplete/autocomplete.cc b/chrome/browser/autocomplete/autocomplete.cc
index ce5e196..decdd78 100644
--- a/chrome/browser/autocomplete/autocomplete.cc
+++ b/chrome/browser/autocomplete/autocomplete.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "app/l10n_util.h"
#include "base/basictypes.h"
#include "base/string_util.h"
#include "chrome/browser/autocomplete/history_url_provider.h"
@@ -18,7 +19,6 @@
#include "chrome/browser/net/url_fixer_upper.h"
#include "chrome/browser/profile.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/autocomplete/autocomplete_accessibility.cc b/chrome/browser/autocomplete/autocomplete_accessibility.cc
index 927467f..8fefe91 100644
--- a/chrome/browser/autocomplete/autocomplete_accessibility.cc
+++ b/chrome/browser/autocomplete/autocomplete_accessibility.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/autocomplete/autocomplete_accessibility.h"
+#include "app/l10n_util.h"
#include "chrome/browser/autocomplete/autocomplete_edit.h"
#include "chrome/browser/autocomplete/autocomplete_edit_view_win.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/accessibility/view_accessibility_wrapper.h"
#include "chrome/views/view.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
index 8649df7..53fd027 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_win.cc
@@ -6,6 +6,8 @@
#include <locale>
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "base/base_drag_source.h"
#include "base/base_drop_target.h"
#include "base/basictypes.h"
@@ -32,8 +34,6 @@
#include "chrome/browser/views/location_bar_view.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/utils.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/common/win_util.h"
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_win.cc b/chrome/browser/autocomplete/autocomplete_popup_view_win.cc
index 82988718..9bf4cb9 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view_win.cc
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_win.cc
@@ -11,6 +11,7 @@
#include <atlmisc.h>
#include <cmath>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/string_util.h"
@@ -28,7 +29,6 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/views/view.h"
#include "grit/theme_resources.h"
diff --git a/chrome/browser/autocomplete/keyword_provider.cc b/chrome/browser/autocomplete/keyword_provider.cc
index b4d5e50..1ff05ad 100644
--- a/chrome/browser/autocomplete/keyword_provider.cc
+++ b/chrome/browser/autocomplete/keyword_provider.cc
@@ -7,11 +7,11 @@
#include <algorithm>
#include <vector>
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_model.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "net/base/escape.h"
#include "net/base/net_util.h"
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc
index b028587..a4c3134 100644
--- a/chrome/browser/autocomplete/search_provider.cc
+++ b/chrome/browser/autocomplete/search_provider.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/autocomplete/search_provider.h"
+#include "app/l10n_util.h"
#include "base/message_loop.h"
#include "base/string_util.h"
#include "chrome/browser/autocomplete/keyword_provider.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/common/json_value_serializer.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/url_constants.h"
diff --git a/chrome/browser/back_forward_menu_model.cc b/chrome/browser/back_forward_menu_model.cc
index 83b8e53..73df778 100644
--- a/chrome/browser/back_forward_menu_model.cc
+++ b/chrome/browser/back_forward_menu_model.cc
@@ -6,12 +6,12 @@
#include "chrome/browser/back_forward_menu_model.h"
+#include "app/l10n_util.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/url_constants.h"
#include "grit/generated_resources.h"
#include "net/base/registry_controlled_domain.h"
diff --git a/chrome/browser/bookmarks/bookmark_codec.cc b/chrome/browser/bookmarks/bookmark_codec.cc
index da8a999..731de81 100644
--- a/chrome/browser/bookmarks/bookmark_codec.cc
+++ b/chrome/browser/bookmarks/bookmark_codec.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/bookmarks/bookmark_codec.h"
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "base/values.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
-#include "chrome/common/l10n_util.h"
#include "googleurl/src/gurl.h"
#include "grit/generated_resources.h"
@@ -313,4 +313,3 @@ void BookmarkCodec::FinalizeChecksum() {
MD5Final(&digest, &md5_context_);
computed_checksum_ = MD5DigestToBase16(digest);
}
-
diff --git a/chrome/browser/bookmarks/bookmark_context_menu.cc b/chrome/browser/bookmarks/bookmark_context_menu.cc
index 039cd83..00935b4 100644
--- a/chrome/browser/bookmarks/bookmark_context_menu.cc
+++ b/chrome/browser/bookmarks/bookmark_context_menu.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/bookmarks/bookmark_context_menu.h"
+#include "app/l10n_util.h"
#include "base/compiler_specific.h"
#include "chrome/browser/bookmarks/bookmark_editor.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
@@ -14,7 +15,6 @@
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/tab_contents/page_navigator.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/bookmarks/bookmark_context_menu_gtk.cc b/chrome/browser/bookmarks/bookmark_context_menu_gtk.cc
index e984ee0..cf616d9 100644
--- a/chrome/browser/bookmarks/bookmark_context_menu_gtk.cc
+++ b/chrome/browser/bookmarks/bookmark_context_menu_gtk.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/bookmarks/bookmark_context_menu.h"
-#include "chrome/common/l10n_util.h"
+#include "app/l10n_util.h"
void BookmarkContextMenu::PopupAsContext(guint32 event_time) {
menu_->PopupAsContext(event_time);
diff --git a/chrome/browser/bookmarks/bookmark_context_menu_win.cc b/chrome/browser/bookmarks/bookmark_context_menu_win.cc
index 705a55f..9baf3b9 100644
--- a/chrome/browser/bookmarks/bookmark_context_menu_win.cc
+++ b/chrome/browser/bookmarks/bookmark_context_menu_win.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/bookmarks/bookmark_context_menu.h"
-#include "chrome/common/l10n_util.h"
+#include "app/l10n_util.h"
void BookmarkContextMenu::RunMenuAt(int x, int y) {
if (!model_->IsLoaded()) {
diff --git a/chrome/browser/bookmarks/bookmark_folder_tree_model.cc b/chrome/browser/bookmarks/bookmark_folder_tree_model.cc
index d86d52f..3f1530f 100644
--- a/chrome/browser/bookmarks/bookmark_folder_tree_model.cc
+++ b/chrome/browser/bookmarks/bookmark_folder_tree_model.cc
@@ -4,8 +4,8 @@
#include "chrome/browser/bookmarks/bookmark_folder_tree_model.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
diff --git a/chrome/browser/bookmarks/bookmark_html_writer.cc b/chrome/browser/bookmarks/bookmark_html_writer.cc
index de4c4ad..00498c4 100644
--- a/chrome/browser/bookmarks/bookmark_html_writer.cc
+++ b/chrome/browser/bookmarks/bookmark_html_writer.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/bookmarks/bookmark_html_writer.h"
+#include "app/l10n_util.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/message_loop.h"
@@ -15,7 +16,6 @@
#include "chrome/browser/bookmarks/bookmark_codec.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/history/history_types.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "net/base/escape.h"
#include "net/base/file_stream.h"
diff --git a/chrome/browser/bookmarks/bookmark_menu_controller.cc b/chrome/browser/bookmarks/bookmark_menu_controller.cc
index 0fcaa98d6..4376c92 100644
--- a/chrome/browser/bookmarks/bookmark_menu_controller.cc
+++ b/chrome/browser/bookmarks/bookmark_menu_controller.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/bookmarks/bookmark_menu_controller.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/bookmarks/bookmark_drag_data.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
@@ -12,7 +13,6 @@
#include "chrome/browser/tab_contents/page_navigator.h"
#include "chrome/browser/views/event_utils.h"
#include "chrome/common/os_exchange_data.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/page_transition_types.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
diff --git a/chrome/browser/bookmarks/bookmark_model.cc b/chrome/browser/bookmarks/bookmark_model.cc
index f0eb9b8..e944419 100644
--- a/chrome/browser/bookmarks/bookmark_model.cc
+++ b/chrome/browser/bookmarks/bookmark_model.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "app/l10n_util.h"
#include "base/gfx/png_decoder.h"
#include "base/scoped_vector.h"
#include "build/build_config.h"
@@ -11,7 +12,6 @@
#include "chrome/browser/bookmarks/bookmark_storage.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profile.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/bookmarks/bookmark_table_model.cc b/chrome/browser/bookmarks/bookmark_table_model.cc
index 24e0d53..15550b9 100644
--- a/chrome/browser/bookmarks/bookmark_table_model.cc
+++ b/chrome/browser/bookmarks/bookmark_table_model.cc
@@ -6,11 +6,11 @@
#include <limits>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "base/time_format.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
-#include "chrome/common/l10n_util.h"
#include "googleurl/src/gurl.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc
index 6832778..80a9fbd 100644
--- a/chrome/browser/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/bookmarks/bookmark_utils.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/bookmarks/bookmark_utils.h"
+#include "app/l10n_util.h"
#include "base/basictypes.h"
#include "base/string_util.h"
#include "base/time.h"
@@ -16,7 +17,6 @@
#include "chrome/browser/tab_contents/page_navigator.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/drag_drop_types.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 646076e..efee083 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/browser.h"
+#include "app/l10n_util.h"
#include "base/command_line.h"
#include "base/idle_timer.h"
#include "base/logging.h"
@@ -35,7 +36,6 @@
#include "chrome/browser/tab_contents/tab_contents_view.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/page_transition_types.h"
#include "chrome/common/pref_names.h"
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 9321958..662671e 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -7,6 +7,7 @@
#include <string>
#include <vector>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_version_info.h"
#include "base/histogram.h"
@@ -24,7 +25,6 @@
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/render_messages.h"
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
index 00d265d..4e213eb 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/browser_init.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/basictypes.h"
#include "base/command_line.h"
@@ -35,7 +36,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/result_codes.h"
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index a40138a..defd7b7 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/field_trial.h"
@@ -41,7 +42,6 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/main_function_params.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/browser_main_win.cc b/chrome/browser/browser_main_win.cc
index d64aa66..2c6e77f 100644
--- a/chrome/browser/browser_main_win.cc
+++ b/chrome/browser/browser_main_win.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/browser_main_win.h"
+#include "app/l10n_util.h"
#include "base/command_line.h"
#include "base/path_service.h"
#include "base/win_util.h"
@@ -17,7 +18,6 @@
#include "chrome/browser/views/uninstall_dialog.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/env_vars.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/common/result_codes.h"
#include "chrome/installer/util/helper.h"
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 0c3e9ea..7a09320 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/browser_process_impl.h"
+#include "app/l10n_util.h"
#include "base/clipboard.h"
#include "base/command_line.h"
#include "base/path_service.h"
@@ -25,7 +26,6 @@
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/browser_uitest.cc b/chrome/browser/browser_uitest.cc
index 90110fb..4feb635 100644
--- a/chrome/browser/browser_uitest.cc
+++ b/chrome/browser/browser_uitest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "app/l10n_util.h"
#include "base/file_path.h"
#include "base/gfx/native_widget_types.h"
#include "base/string_util.h"
@@ -9,7 +10,6 @@
#include "base/values.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/common/chrome_constants.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/platform_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/automation/browser_proxy.h"
diff --git a/chrome/browser/character_encoding.cc b/chrome/browser/character_encoding.cc
index 035d6e1..da65159 100644
--- a/chrome/browser/character_encoding.cc
+++ b/chrome/browser/character_encoding.cc
@@ -7,12 +7,12 @@
#include <map>
#include <set>
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/string_tokenizer.h"
#include "base/string_util.h"
#include "chrome/app/chrome_dll_resource.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "unicode/ucnv.h"
diff --git a/chrome/browser/cocoa/find_bar_cocoa_controller.mm b/chrome/browser/cocoa/find_bar_cocoa_controller.mm
index bdd0937..43123bf 100644
--- a/chrome/browser/cocoa/find_bar_cocoa_controller.mm
+++ b/chrome/browser/cocoa/find_bar_cocoa_controller.mm
@@ -4,6 +4,7 @@
#import <Cocoa/Cocoa.h>
+#include "app/l10n_util.h"
#include "base/mac_util.h"
#include "base/sys_string_conversions.h"
#include "grit/generated_resources.h"
@@ -13,7 +14,6 @@
#import "chrome/browser/cocoa/find_bar_bridge.h"
#import "chrome/browser/cocoa/tab_strip_controller.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
@implementation FindBarCocoaController
diff --git a/chrome/browser/cocoa/sad_tab_view.mm b/chrome/browser/cocoa/sad_tab_view.mm
index c74f297..78d4793 100644
--- a/chrome/browser/cocoa/sad_tab_view.mm
+++ b/chrome/browser/cocoa/sad_tab_view.mm
@@ -4,8 +4,8 @@
#include "chrome/browser/cocoa/sad_tab_view.h"
+#include "app/l10n_util.h"
#include "base/sys_string_conversions.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
static const int kSadTabOffset = -64;
diff --git a/chrome/browser/cocoa/tab_strip_controller.mm b/chrome/browser/cocoa/tab_strip_controller.mm
index b2267d0..c4c26c0 100644
--- a/chrome/browser/cocoa/tab_strip_controller.mm
+++ b/chrome/browser/cocoa/tab_strip_controller.mm
@@ -4,6 +4,7 @@
#import "chrome/browser/cocoa/tab_strip_controller.h"
+#include "app/l10n_util.h"
#include "base/sys_string_conversions.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/browser.h"
@@ -16,7 +17,6 @@
#import "chrome/browser/cocoa/tab_view.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tabs/tab_strip_model.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
@implementation TabStripController
diff --git a/chrome/browser/debugger/debugger_window.cc b/chrome/browser/debugger/debugger_window.cc
index 0a58052..4d77dc4 100644
--- a/chrome/browser/debugger/debugger_window.cc
+++ b/chrome/browser/debugger/debugger_window.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/debugger/debugger_window.h"
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
@@ -12,7 +13,6 @@
#include "chrome/browser/debugger/debugger_wrapper.h"
#include "chrome/browser/tab_contents/constrained_window.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
DebuggerWindow::DebuggerWindow() : window_(NULL),
diff --git a/chrome/browser/debugger/devtools_window_win.cc b/chrome/browser/debugger/devtools_window_win.cc
index 36ca327..9392a7b 100644
--- a/chrome/browser/debugger/devtools_window_win.cc
+++ b/chrome/browser/debugger/devtools_window_win.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/debugger/devtools_window_win.h"
+#include "app/l10n_util.h"
#include "chrome/browser/debugger/devtools_manager.h"
#include "chrome/browser/debugger/devtools_view.h"
#include "chrome/browser/debugger/devtools_window.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/window/window.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/dom_ui/chrome_url_data_manager.cc b/chrome/browser/dom_ui/chrome_url_data_manager.cc
index 3a189b4..230efd8 100644
--- a/chrome/browser/dom_ui/chrome_url_data_manager.cc
+++ b/chrome/browser/dom_ui/chrome_url_data_manager.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#include "base/path_service.h"
@@ -12,7 +13,6 @@
#include "base/values.h"
#include "chrome/browser/browser_process.h"
#include "chrome/common/chrome_paths.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/ref_counted_util.h"
#include "chrome/common/url_constants.h"
#include "googleurl/src/url_util.h"
diff --git a/chrome/browser/dom_ui/dom_ui.cc b/chrome/browser/dom_ui/dom_ui.cc
index 17a1d64..f8e0405 100644
--- a/chrome/browser/dom_ui/dom_ui.cc
+++ b/chrome/browser/dom_ui/dom_ui.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/dom_ui/dom_ui.h"
+#include "app/l10n_util.h"
#include "base/json_reader.h"
#include "base/json_writer.h"
#include "base/stl_util-inl.h"
#include "base/string_util.h"
#include "base/values.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
DOMUI::DOMUI(TabContents* contents)
: hide_favicon_(false),
diff --git a/chrome/browser/dom_ui/downloads_ui.cc b/chrome/browser/dom_ui/downloads_ui.cc
index 639be99..8c33825 100644
--- a/chrome/browser/dom_ui/downloads_ui.cc
+++ b/chrome/browser/dom_ui/downloads_ui.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/dom_ui/downloads_ui.h"
+#include "app/l10n_util.h"
#include "base/gfx/png_encoder.h"
#include "base/string_piece.h"
#include "base/thread.h"
@@ -19,7 +20,6 @@
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/profile.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/time_format.h"
#include "chrome/common/url_constants.h"
#include "grit/browser_resources.h"
diff --git a/chrome/browser/dom_ui/history_ui.cc b/chrome/browser/dom_ui/history_ui.cc
index ee7b3b9..74f0f25 100644
--- a/chrome/browser/dom_ui/history_ui.cc
+++ b/chrome/browser/dom_ui/history_ui.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/dom_ui/history_ui.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/message_loop.h"
#include "base/string_piece.h"
@@ -18,7 +19,6 @@
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/profile.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/time_format.h"
#include "chrome/common/url_constants.h"
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index 03091d3..d4bdf97 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/dom_ui/new_tab_ui.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/histogram.h"
#include "base/string_piece.h"
@@ -28,7 +29,6 @@
#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/user_data_manager.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/download/download_item_model.cc
index 4756249..15fc3fd 100644
--- a/chrome/browser/download/download_item_model.cc
+++ b/chrome/browser/download/download_item_model.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/download/download_item_model.h"
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/download/save_package.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/time_format.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 9bf96a5..4e0b40e 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/download/download_manager.h"
+#include "app/l10n_util.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/logging.h"
@@ -30,7 +31,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/platform_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/download/download_request_dialog_delegate_win.cc b/chrome/browser/download/download_request_dialog_delegate_win.cc
index bc68b990..7df2490 100644
--- a/chrome/browser/download/download_request_dialog_delegate_win.cc
+++ b/chrome/browser/download/download_request_dialog_delegate_win.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/download/download_request_dialog_delegate_win.h"
+#include "app/l10n_util.h"
#include "chrome/browser/tab_contents/constrained_window.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/views/controls/message_box_view.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/download/download_shelf.cc b/chrome/browser/download/download_shelf.cc
index 7563d71..1486ec3 100644
--- a/chrome/browser/download/download_shelf.cc
+++ b/chrome/browser/download/download_shelf.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/download/download_shelf.h"
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "chrome/browser/dom_ui/downloads_ui.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/url_constants.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc
index a3450ab..8b16539 100644
--- a/chrome/browser/download/download_util.cc
+++ b/chrome/browser/download/download_util.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/download/download_util.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/base_drag_source.h"
#include "base/file_util.h"
@@ -18,7 +19,6 @@
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/drag_utils.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/views/view.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc
index 920fe1d..d9af3ea 100644
--- a/chrome/browser/download/save_package.cc
+++ b/chrome/browser/download/save_package.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/download/save_package.h"
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/message_loop.h"
@@ -26,7 +27,6 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/common/chrome_paths.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/platform_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/drag_utils.cc b/chrome/browser/drag_utils.cc
index 813c291..d85d080 100644
--- a/chrome/browser/drag_utils.cc
+++ b/chrome/browser/drag_utils.cc
@@ -8,6 +8,7 @@
#include <shlobj.h>
#include <shobjidl.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_util.h"
#include "base/gfx/gdi_util.h"
@@ -16,7 +17,6 @@
#include "chrome/browser/views/bookmark_bar_view.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/common/win_util.h"
#include "chrome/views/controls/button/text_button.h"
diff --git a/chrome/browser/encoding_menu_controller_delegate.cc b/chrome/browser/encoding_menu_controller_delegate.cc
index 5c9088f..a7a925a 100644
--- a/chrome/browser/encoding_menu_controller_delegate.cc
+++ b/chrome/browser/encoding_menu_controller_delegate.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/encoding_menu_controller_delegate.h"
+#include "app/l10n_util.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/character_encoding.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/extensions/extensions_ui.cc b/chrome/browser/extensions/extensions_ui.cc
index 4a03e06..9d1dfcb 100644
--- a/chrome/browser/extensions/extensions_ui.cc
+++ b/chrome/browser/extensions/extensions_ui.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/extensions/extensions_ui.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/thread.h"
#include "chrome/browser/browser_process.h"
@@ -12,7 +13,6 @@
#include "chrome/browser/profile.h"
#include "chrome/common/extensions/url_pattern.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/url_constants.h"
#include "net/base/net_util.h"
diff --git a/chrome/browser/gtk/about_chrome_dialog.cc b/chrome/browser/gtk/about_chrome_dialog.cc
index 5be8e40..390b618 100644
--- a/chrome/browser/gtk/about_chrome_dialog.cc
+++ b/chrome/browser/gtk/about_chrome_dialog.cc
@@ -7,10 +7,10 @@
#include <gtk/gtk.h>
#include <wchar.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_version_info.h"
#include "base/gfx/gtk_util.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/browser/profile.h"
#include "grit/chromium_strings.h"
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc
index a6ca59e..6c3d85f 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.cc
+++ b/chrome/browser/gtk/bookmark_bar_gtk.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/gtk/bookmark_bar_gtk.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/gtk_util.h"
#include "chrome/browser/bookmarks/bookmark_context_menu.h"
@@ -15,7 +16,6 @@
#include "chrome/browser/profile.h"
#include "chrome/common/gfx/text_elider.h"
#include "chrome/common/gtk_util.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/gtk/bookmark_editor_gtk.cc b/chrome/browser/gtk/bookmark_editor_gtk.cc
index 72f2522..32af739 100644
--- a/chrome/browser/gtk/bookmark_editor_gtk.cc
+++ b/chrome/browser/gtk/bookmark_editor_gtk.cc
@@ -6,6 +6,7 @@
#include <gtk/gtk.h>
+#include "app/l10n_util.h"
#include "base/basictypes.h"
#include "base/gfx/gtk_util.h"
#include "base/logging.h"
@@ -15,7 +16,6 @@
#include "chrome/browser/history/history.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/net/url_fixer_upper.h"
-#include "chrome/common/l10n_util.h"
#include "googleurl/src/gurl.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/gtk/browser_toolbar_gtk.cc b/chrome/browser/gtk/browser_toolbar_gtk.cc
index 62a5e7f..b8d956d 100644
--- a/chrome/browser/gtk/browser_toolbar_gtk.cc
+++ b/chrome/browser/gtk/browser_toolbar_gtk.cc
@@ -6,6 +6,7 @@
#include <gdk/gdkkeysyms.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/logging.h"
#include "base/base_paths_linux.h"
@@ -22,7 +23,6 @@
#include "chrome/browser/gtk/toolbar_star_toggle_gtk.h"
#include "chrome/browser/net/url_fixer_upper.h"
#include "chrome/browser/profile.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_details.h"
#include "chrome/common/notification_type.h"
#include "chrome/common/pref_names.h"
diff --git a/chrome/browser/gtk/dialogs_gtk.cc b/chrome/browser/gtk/dialogs_gtk.cc
index a3df09b..0ee22f3 100644
--- a/chrome/browser/gtk/dialogs_gtk.cc
+++ b/chrome/browser/gtk/dialogs_gtk.cc
@@ -6,12 +6,12 @@
#include <map>
#include <set>
+#include "app/l10n_util.h"
#include "base/file_path.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/shell_dialogs.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
// Implementation of SelectFileDialog that shows a Gtk common dialog for
diff --git a/chrome/browser/gtk/download_shelf_gtk.cc b/chrome/browser/gtk/download_shelf_gtk.cc
index 31d99dd..bf27bbd 100644
--- a/chrome/browser/gtk/download_shelf_gtk.cc
+++ b/chrome/browser/gtk/download_shelf_gtk.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/gtk/download_shelf_gtk.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/gtk_util.h"
#include "chrome/browser/download/download_item_model.h"
@@ -12,7 +13,6 @@
#include "chrome/browser/gtk/link_button_gtk.h"
#include "chrome/browser/gtk/slide_animator_gtk.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
diff --git a/chrome/browser/gtk/find_bar_gtk.cc b/chrome/browser/gtk/find_bar_gtk.cc
index 8fd0dbe..6a9437f4 100644
--- a/chrome/browser/gtk/find_bar_gtk.cc
+++ b/chrome/browser/gtk/find_bar_gtk.cc
@@ -6,6 +6,7 @@
#include <gdk/gdkkeysyms.h>
+#include "app/l10n_util.h"
#include "base/gfx/gtk_util.h"
#include "base/string_util.h"
#include "chrome/browser/find_bar_controller.h"
@@ -16,7 +17,6 @@
#include "chrome/browser/gtk/tab_contents_container_gtk.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/gtk_util.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
namespace {
diff --git a/chrome/browser/gtk/go_button_gtk.cc b/chrome/browser/gtk/go_button_gtk.cc
index 0dffad5..ef58f76 100644
--- a/chrome/browser/gtk/go_button_gtk.cc
+++ b/chrome/browser/gtk/go_button_gtk.cc
@@ -3,12 +3,13 @@
// found in the LICENSE file.
#include "chrome/browser/gtk/go_button_gtk.h"
+
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/gtk/location_bar_view_gtk.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
diff --git a/chrome/browser/gtk/menu_gtk.cc b/chrome/browser/gtk/menu_gtk.cc
index 0ac4cdd..fd63e44 100644
--- a/chrome/browser/gtk/menu_gtk.cc
+++ b/chrome/browser/gtk/menu_gtk.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/gtk/menu_gtk.h"
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "chrome/common/gtk_util.h"
-#include "chrome/common/l10n_util.h"
#include "skia/include/SkBitmap.h"
MenuGtk::MenuGtk(MenuGtk::Delegate* delegate,
diff --git a/chrome/browser/gtk/standard_menus.cc b/chrome/browser/gtk/standard_menus.cc
index a4802ed..56ce055 100644
--- a/chrome/browser/gtk/standard_menus.cc
+++ b/chrome/browser/gtk/standard_menus.cc
@@ -7,9 +7,9 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#include "app/l10n_util.h"
#include "base/basictypes.h"
#include "chrome/app/chrome_dll_resource.h"
-#include "chrome/common/l10n_util.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/gtk/tabs/tab_gtk.cc b/chrome/browser/gtk/tabs/tab_gtk.cc
index 6db2595..cb873b0 100644
--- a/chrome/browser/gtk/tabs/tab_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_gtk.cc
@@ -4,11 +4,11 @@
#include "chrome/browser/gtk/tabs/tab_gtk.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/gtk/custom_button.h"
#include "chrome/browser/gtk/menu_gtk.h"
#include "chrome/common/gfx/path.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
index a9a9438..188b147 100644
--- a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
@@ -4,11 +4,11 @@
#include "chrome/browser/gtk/tabs/tab_renderer_gtk.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "skia/ext/image_operations.h"
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/gtk/tabs/tab_strip_gtk.cc
index 3bc5834..b4987a5 100644
--- a/chrome/browser/gtk/tabs/tab_strip_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_strip_gtk.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/gtk/tabs/tab_strip_gtk.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "app/slide_animation.h"
#include "base/gfx/gtk_util.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/gtk/tabs/dragged_tab_controller_gtk.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
diff --git a/chrome/browser/hang_monitor/hung_plugin_action.cc b/chrome/browser/hang_monitor/hung_plugin_action.cc
index 6acaa67..82d5fc9 100644
--- a/chrome/browser/hang_monitor/hung_plugin_action.cc
+++ b/chrome/browser/hang_monitor/hung_plugin_action.cc
@@ -6,8 +6,8 @@
#include "chrome/browser/hang_monitor/hung_plugin_action.h"
+#include "app/l10n_util.h"
#include "base/win_util.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/win_util.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/history/history.cc b/chrome/browser/history/history.cc
index 1e93694..e5a27d8 100644
--- a/chrome/browser/history/history.cc
+++ b/chrome/browser/history/history.cc
@@ -24,6 +24,7 @@
#include "chrome/browser/history/history.h"
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#include "base/path_service.h"
@@ -41,7 +42,6 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/visitedlink_master.h"
#include "chrome/common/chrome_constants.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/thumbnail_score.h"
#include "chrome/common/url_constants.h"
diff --git a/chrome/browser/history/query_parser.cc b/chrome/browser/history/query_parser.cc
index 8c3a2f3..39754ce 100644
--- a/chrome/browser/history/query_parser.cc
+++ b/chrome/browser/history/query_parser.cc
@@ -6,11 +6,11 @@
#include "chrome/browser/history/query_parser.h"
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/scoped_vector.h"
#include "base/string_util.h"
#include "base/word_iterator.h"
-#include "chrome/common/l10n_util.h"
#include "unicode/uscript.h"
namespace {
diff --git a/chrome/browser/history/url_database.cc b/chrome/browser/history/url_database.cc
index 7f3b919..a72ce2c 100644
--- a/chrome/browser/history/url_database.cc
+++ b/chrome/browser/history/url_database.cc
@@ -7,8 +7,8 @@
#include <algorithm>
#include <limits>
+#include "app/l10n_util.h"
#include "base/string_util.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/sqlite_utils.h"
#include "googleurl/src/gurl.h"
diff --git a/chrome/browser/importer/firefox2_importer.cc b/chrome/browser/importer/firefox2_importer.cc
index d1dbe05..95f7587d 100644
--- a/chrome/browser/importer/firefox2_importer.cc
+++ b/chrome/browser/importer/firefox2_importer.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/importer/firefox2_importer.h"
+#include "app/l10n_util.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/importer/mork_reader.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_parser.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/time_format.h"
#include "chrome/common/url_constants.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/importer/firefox3_importer.cc b/chrome/browser/importer/firefox3_importer.cc
index 1113722..28ea6bd 100644
--- a/chrome/browser/importer/firefox3_importer.cc
+++ b/chrome/browser/importer/firefox3_importer.cc
@@ -6,12 +6,12 @@
#include <set>
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/scoped_ptr.h"
#include "base/string_util.h"
#include "chrome/browser/importer/firefox2_importer.h"
#include "chrome/browser/importer/firefox_importer_utils.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/time_format.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/importer/ie_importer.cc b/chrome/browser/importer/ie_importer.cc
index 5d2dbff..dde6c19 100644
--- a/chrome/browser/importer/ie_importer.cc
+++ b/chrome/browser/importer/ie_importer.cc
@@ -12,6 +12,7 @@
#include <algorithm>
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/registry.h"
#include "base/string_util.h"
@@ -20,7 +21,6 @@
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/password_manager/ie7_password.h"
#include "chrome/browser/search_engines/template_url_model.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/time_format.h"
#include "chrome/common/url_constants.h"
#include "chrome/common/win_util.h"
diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc
index 70e98a8..333ad8c 100644
--- a/chrome/browser/importer/importer.cc
+++ b/chrome/browser/importer/importer.cc
@@ -7,6 +7,7 @@
#include <map>
#include <set>
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/gfx/png_encoder.h"
#include "base/string_util.h"
@@ -28,7 +29,6 @@
#include "chrome/browser/tab_contents/site_instance.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/gfx/favicon_size.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/importer/toolbar_importer.cc b/chrome/browser/importer/toolbar_importer.cc
index 22594e6..0f7c12f 100644
--- a/chrome/browser/importer/toolbar_importer.cc
+++ b/chrome/browser/importer/toolbar_importer.cc
@@ -6,10 +6,10 @@
#include <limits>
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "base/rand_util.h"
#include "chrome/browser/first_run.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/libxml_utils.h"
#include "grit/generated_resources.h"
#include "net/base/cookie_monster.h"
diff --git a/chrome/browser/input_window_dialog_win.cc b/chrome/browser/input_window_dialog_win.cc
index 9d1fa2b..f92d6e5 100644
--- a/chrome/browser/input_window_dialog_win.cc
+++ b/chrome/browser/input_window_dialog_win.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/input_window_dialog.h"
+#include "app/l10n_util.h"
#include "base/message_loop.h"
#include "base/task.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/grid_layout.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/controls/text_field.h"
diff --git a/chrome/browser/jsmessage_box_handler.cc b/chrome/browser/jsmessage_box_handler.cc
index 71b7d3d..41edfec 100644
--- a/chrome/browser/jsmessage_box_handler.cc
+++ b/chrome/browser/jsmessage_box_handler.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/jsmessage_box_handler.h"
+#include "app/l10n_util.h"
#include "build/build_config.h"
#include "chrome/browser/app_modal_dialog_queue.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/login_prompt.cc b/chrome/browser/login_prompt.cc
index 8a52d5d..8ddb96a 100644
--- a/chrome/browser/login_prompt.cc
+++ b/chrome/browser/login_prompt.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/login_prompt.h"
+#include "app/l10n_util.h"
#include "base/command_line.h"
#include "base/lock.h"
#include "base/message_loop.h"
@@ -17,7 +18,6 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/login_view.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/views/window/dialog_delegate.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/password_manager/password_manager.cc b/chrome/browser/password_manager/password_manager.cc
index 2d0e7f0..b558bf94 100644
--- a/chrome/browser/password_manager/password_manager.cc
+++ b/chrome/browser/password_manager/password_manager.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/password_manager/password_manager.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/stl_util-inl.h"
#include "base/string_util.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_registrar.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
diff --git a/chrome/browser/plugin_installer.cc b/chrome/browser/plugin_installer.cc
index aa803b4..82da4dd 100644
--- a/chrome/browser/plugin_installer.cc
+++ b/chrome/browser/plugin_installer.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/plugin_installer.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "webkit/default_plugin/default_plugin_shared.h"
diff --git a/chrome/browser/printing/print_view_manager.cc b/chrome/browser/printing/print_view_manager.cc
index 930c0be..f717023 100644
--- a/chrome/browser/printing/print_view_manager.cc
+++ b/chrome/browser/printing/print_view_manager.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/printing/print_view_manager.h"
+#include "app/l10n_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/printing/print_job.h"
#include "chrome/browser/printing/print_job_manager.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/gfx/emf.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/render_messages.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc
index b3ce8f7..cffd597 100644
--- a/chrome/browser/process_singleton_win.cc
+++ b/chrome/browser/process_singleton_win.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/process_singleton.h"
+#include "app/l10n_util.h"
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/process_util.h"
@@ -14,7 +15,6 @@
#include "chrome/browser/profile_manager.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/result_codes.h"
#include "chrome/common/win_util.h"
#include "grit/chromium_strings.h"
diff --git a/chrome/browser/profile_manager.cc b/chrome/browser/profile_manager.cc
index f3fa543..26650cc 100644
--- a/chrome/browser/profile_manager.cc
+++ b/chrome/browser/profile_manager.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/profile_manager.h"
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/string_util.h"
@@ -15,7 +16,6 @@
#include "chrome/browser/chrome_thread.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc
index b143f2e..75a2b03 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_win.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/renderer_host/render_widget_host_view_win.h"
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/gfx/gdi_util.h"
@@ -21,8 +23,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/common/native_web_keyboard_event.h"
#include "chrome/common/plugin_messages.h"
#include "chrome/common/render_messages.h"
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
index 63f9542..7ebfbc6 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/histogram.h"
#include "base/string_util.h"
@@ -19,7 +20,6 @@
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/url_constants.h"
#include "grit/browser_resources.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/search_engines/template_url.cc b/chrome/browser/search_engines/template_url.cc
index b73bdd0..61b8da8 100644
--- a/chrome/browser/search_engines/template_url.cc
+++ b/chrome/browser/search_engines/template_url.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/search_engines/template_url.h"
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "chrome/browser/browser_process.h"
@@ -11,7 +12,6 @@
#include "chrome/browser/google_url_tracker.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/common/gfx/favicon_size.h"
-#include "chrome/common/l10n_util.h"
#include "net/base/escape.h"
// The TemplateURLRef has any number of terms that need to be replaced. Each of
diff --git a/chrome/browser/search_engines/template_url_model.cc b/chrome/browser/search_engines/template_url_model.cc
index 10f9137..97dd1d0 100644
--- a/chrome/browser/search_engines/template_url_model.cc
+++ b/chrome/browser/search_engines/template_url_model.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/stl_util-inl.h"
#include "base/string_util.h"
@@ -17,7 +18,6 @@
#include "chrome/browser/rlz/rlz.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/session_history_uitest.cc b/chrome/browser/session_history_uitest.cc
index 4fd7ba4..7805173 100644
--- a/chrome/browser/session_history_uitest.cc
+++ b/chrome/browser/session_history_uitest.cc
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "app/l10n_util.h"
#include "base/file_path.h"
#include "base/platform_thread.h"
#include "base/string_util.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/test/automation/tab_proxy.h"
#include "chrome/test/automation/browser_proxy.h"
#include "chrome/test/ui/ui_test.h"
diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc
index ba2b84a..1a28cf1 100644
--- a/chrome/browser/spellchecker.cc
+++ b/chrome/browser/spellchecker.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "app/l10n_util.h"
#include "chrome/browser/spellchecker.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
@@ -18,7 +19,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_counters.h"
#include "chrome/common/chrome_paths.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/third_party/hunspell/src/hunspell/hunspell.hxx"
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h
index e7f4972..2827991 100644
--- a/chrome/browser/spellchecker.h
+++ b/chrome/browser/spellchecker.h
@@ -7,11 +7,11 @@
#include <vector>
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/spellcheck_worditerator.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_member.h"
diff --git a/chrome/browser/ssl/ssl_blocking_page.cc b/chrome/browser/ssl/ssl_blocking_page.cc
index f37317c..24794c0 100644
--- a/chrome/browser/ssl/ssl_blocking_page.cc
+++ b/chrome/browser/ssl/ssl_blocking_page.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ssl/ssl_blocking_page.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/histogram.h"
#include "base/string_piece.h"
@@ -16,7 +17,6 @@
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/ssl/ssl_error_info.cc b/chrome/browser/ssl/ssl_error_info.cc
index a101f8b..d47529a 100644
--- a/chrome/browser/ssl/ssl_error_info.cc
+++ b/chrome/browser/ssl/ssl_error_info.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/ssl/ssl_error_info.h"
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/browser/cert_store.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/time_format.h"
#include "googleurl/src/gurl.h"
#include "grit/chromium_strings.h"
diff --git a/chrome/browser/ssl/ssl_manager.cc b/chrome/browser/ssl/ssl_manager.cc
index f5b0602..01125a0 100644
--- a/chrome/browser/ssl/ssl_manager.cc
+++ b/chrome/browser/ssl/ssl_manager.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ssl/ssl_manager.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/message_loop.h"
#include "base/string_util.h"
@@ -20,7 +21,6 @@
#include "chrome/browser/tab_contents/provisional_load_details.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/tab_contents/tab_util.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/ssl/ssl_policy.cc b/chrome/browser/ssl/ssl_policy.cc
index 855c3f0..829af05 100644
--- a/chrome/browser/ssl/ssl_policy.cc
+++ b/chrome/browser/ssl/ssl_policy.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ssl/ssl_policy.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/singleton.h"
#include "base/string_piece.h"
@@ -14,7 +15,6 @@
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/tab_contents/infobar_delegate.cc b/chrome/browser/tab_contents/infobar_delegate.cc
index 9a466fb..9ddbdd4 100644
--- a/chrome/browser/tab_contents/infobar_delegate.cc
+++ b/chrome/browser/tab_contents/infobar_delegate.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/tab_contents/infobar_delegate.h"
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "build/build_config.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
// InfoBarDelegate: ------------------------------------------------------------
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index 3a22a5a..8c5e862 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/tab_contents/render_view_context_menu.h"
+#include "app/l10n_util.h"
#include "base/clipboard.h"
#include "base/command_line.h"
#include "base/logging.h"
@@ -18,7 +19,6 @@
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/platform_util.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/url_constants.h"
diff --git a/chrome/browser/tab_contents/render_view_context_menu_mac.mm b/chrome/browser/tab_contents/render_view_context_menu_mac.mm
index b2cc94f..ba55aa2 100644
--- a/chrome/browser/tab_contents/render_view_context_menu_mac.mm
+++ b/chrome/browser/tab_contents/render_view_context_menu_mac.mm
@@ -4,10 +4,10 @@
#include "chrome/browser/tab_contents/render_view_context_menu_mac.h"
+#include "app/l10n_util.h"
#include "base/compiler_specific.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/profile.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
// Obj-C bridge class that is the target of all items in the context menu.
diff --git a/chrome/browser/tab_contents/render_view_context_menu_win.cc b/chrome/browser/tab_contents/render_view_context_menu_win.cc
index ea2a2d0..87dce53 100644
--- a/chrome/browser/tab_contents/render_view_context_menu_win.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu_win.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/tab_contents/render_view_context_menu_win.h"
+#include "app/l10n_util.h"
#include "base/compiler_specific.h"
#include "chrome/browser/profile.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
RenderViewContextMenuWin::RenderViewContextMenuWin(
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 92d5584..38c6d19 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/tab_contents/tab_contents.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_version_info.h"
#include "base/process_util.h"
@@ -37,7 +38,6 @@
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/task_manager.cc b/chrome/browser/task_manager.cc
index 4f96d2b..c82806a 100644
--- a/chrome/browser/task_manager.cc
+++ b/chrome/browser/task_manager.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/task_manager.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/process_util.h"
#include "base/stats_table.h"
@@ -15,7 +16,6 @@
#include "chrome/browser/task_manager_resource_providers.h"
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/accelerator.h"
diff --git a/chrome/browser/task_manager_resource_providers.cc b/chrome/browser/task_manager_resource_providers.cc
index 2d29f8f..49c4473 100644
--- a/chrome/browser/task_manager_resource_providers.cc
+++ b/chrome/browser/task_manager_resource_providers.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/task_manager_resource_providers.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/basictypes.h"
#include "base/file_version_info.h"
@@ -19,7 +20,6 @@
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/child_process_host.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#if defined(OS_WIN)
#include "chrome/common/gfx/icon_util.h"
diff --git a/chrome/browser/toolbar_model.cc b/chrome/browser/toolbar_model.cc
index 4f9c98e..ec6be7c 100644
--- a/chrome/browser/toolbar_model.cc
+++ b/chrome/browser/toolbar_model.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/toolbar_model.h"
+#include "app/l10n_util.h"
#include "chrome/browser/cert_store.h"
#include "chrome/browser/ssl/ssl_error_info.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/user_data_manager.cc b/chrome/browser/user_data_manager.cc
index e066cf1..0542576 100644
--- a/chrome/browser/user_data_manager.cc
+++ b/chrome/browser/user_data_manager.cc
@@ -8,6 +8,7 @@
#include <string>
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/message_loop.h"
@@ -18,7 +19,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/installer/util/browser_distribution.h"
#include "grit/chromium_strings.h"
diff --git a/chrome/browser/views/about_chrome_view.cc b/chrome/browser/views/about_chrome_view.cc
index ed79f59..38c658b 100644
--- a/chrome/browser/views/about_chrome_view.cc
+++ b/chrome/browser/views/about_chrome_view.cc
@@ -6,6 +6,7 @@
#include <commdlg.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_version_info.h"
#include "base/string_util.h"
@@ -17,7 +18,6 @@
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/views/restart_message_box.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/installer/util/install_util.h"
#include "chrome/views/controls/text_field.h"
diff --git a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
index 2012a44..4fed441 100644
--- a/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
+++ b/chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc
@@ -6,6 +6,7 @@
#include <dwmapi.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/autocomplete/autocomplete_edit_view_win.h"
#include "chrome/browser/autocomplete/autocomplete_popup_model.h"
@@ -14,7 +15,6 @@
#include "chrome/common/gfx/color_utils.h"
#include "chrome/common/gfx/insets.h"
#include "chrome/common/gfx/path.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "chrome/views/widget/widget.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/views/blocked_popup_container.cc b/chrome/browser/views/blocked_popup_container.cc
index 4fa0505..9220049 100644
--- a/chrome/browser/views/blocked_popup_container.cc
+++ b/chrome/browser/views/blocked_popup_container.cc
@@ -12,6 +12,7 @@
#include <math.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "chrome/browser/extensions/extension_function_dispatcher.h"
@@ -19,7 +20,6 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/path.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/views/background.h"
diff --git a/chrome/browser/views/bookmark_bar_view.cc b/chrome/browser/views/bookmark_bar_view.cc
index cc56194..6cc1554 100644
--- a/chrome/browser/views/bookmark_bar_view.cc
+++ b/chrome/browser/views/bookmark_bar_view.cc
@@ -6,6 +6,7 @@
#include <limits>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "base/base_drag_source.h"
@@ -26,7 +27,6 @@
#include "chrome/browser/views/event_utils.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/common/page_transition_types.h"
diff --git a/chrome/browser/views/bookmark_bubble_view.cc b/chrome/browser/views/bookmark_bubble_view.cc
index 86fe3ac..7bb4cce 100644
--- a/chrome/browser/views/bookmark_bubble_view.cc
+++ b/chrome/browser/views/bookmark_bubble_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/bookmark_bubble_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/bookmarks/bookmark_editor.h"
@@ -14,7 +15,6 @@
#include "chrome/browser/views/info_bubble.h"
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/views/controls/button/native_button.h"
#include "chrome/views/controls/text_field.h"
diff --git a/chrome/browser/views/bookmark_editor_view.cc b/chrome/browser/views/bookmark_editor_view.cc
index ede739c..347ba5d 100644
--- a/chrome/browser/views/bookmark_editor_view.cc
+++ b/chrome/browser/views/bookmark_editor_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/bookmark_editor_view.h"
+#include "app/l10n_util.h"
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/string_util.h"
@@ -12,7 +13,6 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/net/url_fixer_upper.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/background.h"
#include "chrome/views/focus/focus_manager.h"
#include "chrome/views/grid_layout.h"
diff --git a/chrome/browser/views/bug_report_view.cc b/chrome/browser/views/bug_report_view.cc
index 33dd6d7..c339eba 100644
--- a/chrome/browser/views/bug_report_view.cc
+++ b/chrome/browser/views/bug_report_view.cc
@@ -7,6 +7,7 @@
#include <iostream>
#include <fstream>
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/browser/net/url_fetcher.h"
#include "chrome/browser/profile.h"
@@ -15,7 +16,6 @@
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/controls/button/checkbox.h"
diff --git a/chrome/browser/views/clear_browsing_data.cc b/chrome/browser/views/clear_browsing_data.cc
index 0b00f6a..1d9070f 100644
--- a/chrome/browser/views/clear_browsing_data.cc
+++ b/chrome/browser/views/clear_browsing_data.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/views/clear_browsing_data.h"
+#include "app/l10n_util.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/background.h"
#include "chrome/views/controls/button/checkbox.h"
#include "chrome/views/controls/label.h"
diff --git a/chrome/browser/views/constrained_window_impl.cc b/chrome/browser/views/constrained_window_impl.cc
index 5d5ae8f..fbe8264 100644
--- a/chrome/browser/views/constrained_window_impl.cc
+++ b/chrome/browser/views/constrained_window_impl.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/constrained_window_impl.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/rect.h"
#include "chrome/app/chrome_dll_resource.h"
@@ -20,7 +21,6 @@
#include "chrome/common/gfx/chrome_font.h"
#include "chrome/common/gfx/path.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/views/constrained_window_impl_interactive_uitest.cc b/chrome/browser/views/constrained_window_impl_interactive_uitest.cc
index 40a156a..7990d21 100644
--- a/chrome/browser/views/constrained_window_impl_interactive_uitest.cc
+++ b/chrome/browser/views/constrained_window_impl_interactive_uitest.cc
@@ -4,10 +4,10 @@
#include <string>
+#include "app/l10n_util.h"
#include "base/file_path.h"
#include "chrome/browser/view_ids.h"
#include "chrome/common/chrome_constants.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/test/automation/automation_constants.h"
#include "chrome/test/automation/browser_proxy.h"
#include "chrome/test/automation/constrained_window_proxy.h"
diff --git a/chrome/browser/views/download_item_view.cc b/chrome/browser/views/download_item_view.cc
index 3337c25..5653fda 100644
--- a/chrome/browser/views/download_item_view.cc
+++ b/chrome/browser/views/download_item_view.cc
@@ -6,6 +6,7 @@
#include <vector>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_path.h"
#include "base/string_util.h"
@@ -15,7 +16,6 @@
#include "chrome/browser/views/download_shelf_view.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "chrome/views/controls/button/native_button.h"
#include "chrome/views/controls/menu/menu.h"
diff --git a/chrome/browser/views/download_shelf_view.cc b/chrome/browser/views/download_shelf_view.cc
index 490eb42..8b52280 100644
--- a/chrome/browser/views/download_shelf_view.cc
+++ b/chrome/browser/views/download_shelf_view.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/logging.h"
#include "chrome/browser/download/download_item_model.h"
@@ -14,7 +15,6 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/download_item_view.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/background.h"
#include "chrome/views/controls/button/image_button.h"
#include "chrome/views/controls/image_view.h"
diff --git a/chrome/browser/views/edit_keyword_controller.cc b/chrome/browser/views/edit_keyword_controller.cc
index 98295c9..c481d69 100644
--- a/chrome/browser/views/edit_keyword_controller.cc
+++ b/chrome/browser/views/edit_keyword_controller.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/edit_keyword_controller.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "chrome/browser/metrics/user_metrics.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/views/keyword_editor_view.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/controls/image_view.h"
#include "chrome/views/controls/table/table_view.h"
diff --git a/chrome/browser/views/external_protocol_dialog.cc b/chrome/browser/views/external_protocol_dialog.cc
index 2dca539..57c9bef 100644
--- a/chrome/browser/views/external_protocol_dialog.cc
+++ b/chrome/browser/views/external_protocol_dialog.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/external_protocol_dialog.h"
+#include "app/l10n_util.h"
#include "base/histogram.h"
#include "base/registry.h"
#include "base/string_util.h"
@@ -12,7 +13,6 @@
#include "chrome/browser/external_protocol_handler.h"
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/views/controls/message_box_view.h"
#include "chrome/views/window/window.h"
diff --git a/chrome/browser/views/find_bar_view.cc b/chrome/browser/views/find_bar_view.cc
index 2869cff1..7c7a26a 100644
--- a/chrome/browser/views/find_bar_view.cc
+++ b/chrome/browser/views/find_bar_view.cc
@@ -6,13 +6,13 @@
#include <algorithm>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "chrome/browser/find_bar_controller.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/find_bar_win.h"
#include "chrome/browser/view_ids.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/views/background.h"
#include "chrome/views/controls/button/image_button.h"
diff --git a/chrome/browser/views/first_run_bubble.cc b/chrome/browser/views/first_run_bubble.cc
index b1a153a..e487b5f 100644
--- a/chrome/browser/views/first_run_bubble.cc
+++ b/chrome/browser/views/first_run_bubble.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/first_run_bubble.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/win_util.h"
#include "chrome/browser/browser.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/event.h"
#include "chrome/views/controls/button/native_button.h"
#include "chrome/views/controls/label.h"
diff --git a/chrome/browser/views/first_run_customize_view.cc b/chrome/browser/views/first_run_customize_view.cc
index 6b5aa77..190a89a 100644
--- a/chrome/browser/views/first_run_customize_view.cc
+++ b/chrome/browser/views/first_run_customize_view.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/views/first_run_customize_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/importer/importer.h"
#include "chrome/browser/first_run.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/button/checkbox.h"
#include "chrome/views/controls/combo_box.h"
#include "chrome/views/controls/image_view.h"
diff --git a/chrome/browser/views/first_run_view.cc b/chrome/browser/views/first_run_view.cc
index bbfb4f9..e5e14a5 100644
--- a/chrome/browser/views/first_run_view.cc
+++ b/chrome/browser/views/first_run_view.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/views/first_run_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/importer/importer.h"
#include "chrome/browser/first_run.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/views/first_run_customize_view.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/button/checkbox.h"
#include "chrome/views/controls/image_view.h"
#include "chrome/views/controls/label.h"
diff --git a/chrome/browser/views/first_run_view_base.cc b/chrome/browser/views/first_run_view_base.cc
index d55832d..cba6080 100644
--- a/chrome/browser/views/first_run_view_base.cc
+++ b/chrome/browser/views/first_run_view_base.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/first_run_view_base.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/path_service.h"
@@ -15,7 +16,6 @@
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/background.h"
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc
index 5150aa9..ea92f19 100644
--- a/chrome/browser/views/frame/browser_view.cc
+++ b/chrome/browser/views/frame/browser_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/frame/browser_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/file_version_info.h"
@@ -47,7 +48,6 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/drag_drop_types.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/common/pref_names.h"
diff --git a/chrome/browser/views/frame/opaque_browser_frame_view.cc b/chrome/browser/views/frame/opaque_browser_frame_view.cc
index 8e4a7b6..23ea9ae 100644
--- a/chrome/browser/views/frame/opaque_browser_frame_view.cc
+++ b/chrome/browser/views/frame/opaque_browser_frame_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/frame/opaque_browser_frame_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/views/frame/browser_frame.h"
#include "chrome/browser/views/frame/browser_view.h"
@@ -11,7 +12,6 @@
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
#include "chrome/common/gfx/path.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "chrome/views/controls/button/image_button.h"
#include "chrome/views/widget/root_view.h"
diff --git a/chrome/browser/views/fullscreen_exit_bubble.cc b/chrome/browser/views/fullscreen_exit_bubble.cc
index d1327cd..e490995 100644
--- a/chrome/browser/views/fullscreen_exit_bubble.cc
+++ b/chrome/browser/views/fullscreen_exit_bubble.cc
@@ -4,11 +4,11 @@
#include "chrome/browser/views/fullscreen_exit_bubble.h"
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "app/resource_bundle.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/views/widget/root_view.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/views/go_button.cc b/chrome/browser/views/go_button.cc
index 4c6de94..b0a817c 100644
--- a/chrome/browser/views/go_button.cc
+++ b/chrome/browser/views/go_button.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/views/go_button.h"
+#include "app/l10n_util.h"
#include "base/message_loop.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/views/event_utils.h"
#include "chrome/browser/views/location_bar_view.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
////////////////////////////////////////////////////////////////////////////////
diff --git a/chrome/browser/views/importer_lock_view.cc b/chrome/browser/views/importer_lock_view.cc
index 06aef04..e1224d4 100644
--- a/chrome/browser/views/importer_lock_view.cc
+++ b/chrome/browser/views/importer_lock_view.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/views/importer_lock_view.h"
+#include "app/l10n_util.h"
#include "chrome/browser/importer/importer.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/window/window.h"
#include "grit/chromium_strings.h"
diff --git a/chrome/browser/views/importer_view.cc b/chrome/browser/views/importer_view.cc
index f3a2d11..baa7387 100644
--- a/chrome/browser/views/importer_view.cc
+++ b/chrome/browser/views/importer_view.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/views/importer_view.h"
+#include "app/l10n_util.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/button/checkbox.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/grid_layout.h"
diff --git a/chrome/browser/views/importing_progress_view.cc b/chrome/browser/views/importing_progress_view.cc
index cac8043..b2b41d0 100644
--- a/chrome/browser/views/importing_progress_view.cc
+++ b/chrome/browser/views/importing_progress_view.cc
@@ -4,8 +4,8 @@
#include "chrome/browser/views/importing_progress_view.h"
+#include "app/l10n_util.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/grid_layout.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/controls/throbber.h"
diff --git a/chrome/browser/views/infobars/infobars.cc b/chrome/browser/views/infobars/infobars.cc
index c4a0618..86ec619 100644
--- a/chrome/browser/views/infobars/infobars.cc
+++ b/chrome/browser/views/infobars/infobars.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/views/infobars/infobars.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "app/slide_animation.h"
#include "base/message_loop.h"
#include "chrome/browser/views/event_utils.h"
#include "chrome/browser/views/infobars/infobar_container.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/background.h"
#include "chrome/views/controls/button/image_button.h"
#include "chrome/views/controls/button/native_button.h"
diff --git a/chrome/browser/views/jsmessage_box_dialog.cc b/chrome/browser/views/jsmessage_box_dialog.cc
index 7deca87..3375af2 100644
--- a/chrome/browser/views/jsmessage_box_dialog.cc
+++ b/chrome/browser/views/jsmessage_box_dialog.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/views/jsmessage_box_dialog.h"
+#include "app/l10n_util.h"
#include "chrome/browser/app_modal_dialog.h"
#include "chrome/browser/tab_contents/tab_contents.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/views/controls/message_box_view.h"
#include "chrome/views/window/window.h"
diff --git a/chrome/browser/views/keyword_editor_view.cc b/chrome/browser/views/keyword_editor_view.cc
index 7ea7771..f650ba2 100644
--- a/chrome/browser/views/keyword_editor_view.cc
+++ b/chrome/browser/views/keyword_editor_view.cc
@@ -6,6 +6,7 @@
#include <vector>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/png_decoder.h"
#include "base/stl_util-inl.h"
@@ -17,7 +18,6 @@
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/views/edit_keyword_controller.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/background.h"
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc
index 9ddeea3..41d0953 100644
--- a/chrome/browser/views/location_bar_view.cc
+++ b/chrome/browser/views/location_bar_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/location_bar_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/path_service.h"
#include "base/string_util.h"
@@ -24,7 +25,6 @@
#include "chrome/browser/views/info_bubble.h"
#include "chrome/browser/views/first_run_bubble.h"
#include "chrome/browser/views/page_info_window.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/win_util.h"
#include "chrome/views/background.h"
diff --git a/chrome/browser/views/login_view.cc b/chrome/browser/views/login_view.cc
index 47626cf..cef889a 100644
--- a/chrome/browser/views/login_view.cc
+++ b/chrome/browser/views/login_view.cc
@@ -6,9 +6,9 @@
#include "chrome/browser/views/login_view.h"
+#include "app/l10n_util.h"
#include "base/message_loop.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/grid_layout.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/controls/text_field.h"
diff --git a/chrome/browser/views/new_profile_dialog.cc b/chrome/browser/views/new_profile_dialog.cc
index cf9551d1..b50424a 100644
--- a/chrome/browser/views/new_profile_dialog.cc
+++ b/chrome/browser/views/new_profile_dialog.cc
@@ -6,10 +6,10 @@
#include <string>
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/file_util.h"
#include "chrome/browser/user_data_manager.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/views/controls/message_box_view.h"
#include "chrome/views/controls/text_field.h"
diff --git a/chrome/browser/views/options/advanced_page_view.cc b/chrome/browser/views/options/advanced_page_view.cc
index 20d8616..a29b109 100644
--- a/chrome/browser/views/options/advanced_page_view.cc
+++ b/chrome/browser/views/options/advanced_page_view.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/views/options/advanced_page_view.h"
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/views/options/advanced_contents_view.h"
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/chrome_constants.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
diff --git a/chrome/browser/views/options/content_page_view.cc b/chrome/browser/views/options/content_page_view.cc
index e0cc572..095ea36 100644
--- a/chrome/browser/views/options/content_page_view.cc
+++ b/chrome/browser/views/options/content_page_view.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/views/options/content_page_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_util.h"
#include "base/gfx/native_theme.h"
@@ -19,7 +20,6 @@
#include "chrome/browser/views/options/passwords_exceptions_window_view.h"
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/controls/button/radio_button.h"
diff --git a/chrome/browser/views/options/cookies_view.cc b/chrome/browser/views/options/cookies_view.cc
index 6d66800..f428ff1 100644
--- a/chrome/browser/views/options/cookies_view.cc
+++ b/chrome/browser/views/options/cookies_view.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/views/options/cookies_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "base/time_format.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/color_utils.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "chrome/views/border.h"
#include "chrome/views/grid_layout.h"
diff --git a/chrome/browser/views/options/exceptions_page_view.cc b/chrome/browser/views/options/exceptions_page_view.cc
index b4c580c..65c38f9 100644
--- a/chrome/browser/views/options/exceptions_page_view.cc
+++ b/chrome/browser/views/options/exceptions_page_view.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/views/options/exceptions_page_view.h"
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/background.h"
diff --git a/chrome/browser/views/options/fonts_languages_window_view.cc b/chrome/browser/views/options/fonts_languages_window_view.cc
index 36fbaf2..6219f87 100644
--- a/chrome/browser/views/options/fonts_languages_window_view.cc
+++ b/chrome/browser/views/options/fonts_languages_window_view.cc
@@ -4,12 +4,12 @@
#include "chrome/browser/views/options/fonts_languages_window_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/views/options/fonts_page_view.h"
#include "chrome/browser/views/options/languages_page_view.h"
#include "chrome/common/chrome_constants.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/window/window.h"
diff --git a/chrome/browser/views/options/fonts_page_view.cc b/chrome/browser/views/options/fonts_page_view.cc
index f7be657..554acb3 100644
--- a/chrome/browser/views/options/fonts_page_view.cc
+++ b/chrome/browser/views/options/fonts_page_view.cc
@@ -11,6 +11,7 @@
#include <vector>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_util.h"
#include "base/gfx/native_theme.h"
@@ -21,7 +22,6 @@
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/controls/button/native_button.h"
diff --git a/chrome/browser/views/options/general_page_view.cc b/chrome/browser/views/options/general_page_view.cc
index 229f93a..bf7c4a7 100644
--- a/chrome/browser/views/options/general_page_view.cc
+++ b/chrome/browser/views/options/general_page_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/options/general_page_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/png_decoder.h"
#include "base/message_loop.h"
@@ -25,7 +26,6 @@
#include "chrome/browser/views/standard_layout.h"
#include "chrome/browser/dom_ui/new_tab_ui.h"
#include "chrome/common/chrome_constants.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/url_constants.h"
diff --git a/chrome/browser/views/options/language_combobox_model.cc b/chrome/browser/views/options/language_combobox_model.cc
index 3411a4d..7186032 100644
--- a/chrome/browser/views/options/language_combobox_model.cc
+++ b/chrome/browser/views/options/language_combobox_model.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/views/options/language_combobox_model.h"
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/metrics/user_metrics.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_service.h"
#include "grit/generated_resources.h"
#include "unicode/uloc.h"
diff --git a/chrome/browser/views/options/languages_page_view.cc b/chrome/browser/views/options/languages_page_view.cc
index 42e5b89..c960f13 100644
--- a/chrome/browser/views/options/languages_page_view.cc
+++ b/chrome/browser/views/options/languages_page_view.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/views/options/languages_page_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/file_util.h"
#include "base/string_util.h"
@@ -21,7 +22,6 @@
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/controls/button/radio_button.h"
diff --git a/chrome/browser/views/options/options_group_view.cc b/chrome/browser/views/options/options_group_view.cc
index 2302eec..a6071dc 100644
--- a/chrome/browser/views/options/options_group_view.cc
+++ b/chrome/browser/views/options/options_group_view.cc
@@ -7,12 +7,12 @@
#include "chrome/browser/views/options/options_group_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/native_theme.h"
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/gfx/chrome_font.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/grid_layout.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/controls/separator.h"
diff --git a/chrome/browser/views/options/options_window_view.cc b/chrome/browser/views/options/options_window_view.cc
index 8b40893..15f4181 100644
--- a/chrome/browser/views/options/options_window_view.cc
+++ b/chrome/browser/views/options/options_window_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/options_window.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profile.h"
@@ -11,7 +12,6 @@
#include "chrome/browser/views/options/content_page_view.h"
#include "chrome/browser/views/options/general_page_view.h"
#include "chrome/common/chrome_constants.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#ifdef CHROME_PERSONALIZATION
diff --git a/chrome/browser/views/options/passwords_exceptions_window_view.cc b/chrome/browser/views/options/passwords_exceptions_window_view.cc
index 4ea100f..587548a 100644
--- a/chrome/browser/views/options/passwords_exceptions_window_view.cc
+++ b/chrome/browser/views/options/passwords_exceptions_window_view.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/views/options/passwords_exceptions_window_view.h"
+#include "app/l10n_util.h"
#include "chrome/browser/views/options/passwords_page_view.h"
#include "chrome/browser/views/options/exceptions_page_view.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
// static
diff --git a/chrome/browser/views/options/passwords_page_view.cc b/chrome/browser/views/options/passwords_page_view.cc
index 7325dd4..04c13f4 100644
--- a/chrome/browser/views/options/passwords_page_view.cc
+++ b/chrome/browser/views/options/passwords_page_view.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/views/options/passwords_page_view.h"
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/background.h"
diff --git a/chrome/browser/views/page_info_window.cc b/chrome/browser/views/page_info_window.cc
index f1bd9e4..059ec52 100644
--- a/chrome/browser/views/page_info_window.cc
+++ b/chrome/browser/views/page_info_window.cc
@@ -7,6 +7,7 @@
#include <cryptuiapi.h>
#pragma comment(lib, "cryptui.lib")
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "base/time_format.h"
@@ -16,7 +17,6 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/ssl/ssl_manager.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/win_util.h"
diff --git a/chrome/browser/views/repost_form_warning_view.cc b/chrome/browser/views/repost_form_warning_view.cc
index 97e33fd..a1bd302 100644
--- a/chrome/browser/views/repost_form_warning_view.cc
+++ b/chrome/browser/views/repost_form_warning_view.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/views/repost_form_warning_view.h"
+#include "app/l10n_util.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/common/notification_service.h"
#include "chrome/views/controls/message_box_view.h"
diff --git a/chrome/browser/views/restart_message_box.cc b/chrome/browser/views/restart_message_box.cc
index e9728cb..3624f5c 100644
--- a/chrome/browser/views/restart_message_box.cc
+++ b/chrome/browser/views/restart_message_box.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/views/restart_message_box.h"
-#include "chrome/common/l10n_util.h"
+#include "app/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/views/controls/message_box_view.h"
#include "chrome/views/window/window.h"
diff --git a/chrome/browser/views/sad_tab_view.cc b/chrome/browser/views/sad_tab_view.cc
index 0ed2454..1653894 100644
--- a/chrome/browser/views/sad_tab_view.cc
+++ b/chrome/browser/views/sad_tab_view.cc
@@ -4,10 +4,10 @@
#include "chrome/browser/views/sad_tab_view.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/size.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "skia/ext/skia_utils.h"
diff --git a/chrome/browser/views/select_profile_dialog.cc b/chrome/browser/views/select_profile_dialog.cc
index 3a5c6d2..2a2af8b 100644
--- a/chrome/browser/views/select_profile_dialog.cc
+++ b/chrome/browser/views/select_profile_dialog.cc
@@ -6,12 +6,12 @@
#include <string>
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "chrome/browser/user_data_manager.h"
#include "chrome/browser/views/new_profile_dialog.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/combo_box.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/controls/message_box_view.h"
diff --git a/chrome/browser/views/shelf_item_dialog.cc b/chrome/browser/views/shelf_item_dialog.cc
index 720e255..fdfae82 100644
--- a/chrome/browser/views/shelf_item_dialog.cc
+++ b/chrome/browser/views/shelf_item_dialog.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/shelf_item_dialog.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/png_decoder.h"
#include "base/stl_util-inl.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/views/background.h"
diff --git a/chrome/browser/views/shell_dialogs_win.cc b/chrome/browser/views/shell_dialogs_win.cc
index 24324d9..35879b9 100644
--- a/chrome/browser/views/shell_dialogs_win.cc
+++ b/chrome/browser/views/shell_dialogs_win.cc
@@ -12,13 +12,13 @@
#include <algorithm>
#include <set>
+#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/registry.h"
#include "base/string_util.h"
#include "base/thread.h"
#include "chrome/browser/browser_process.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/views/status_bubble_views.cc b/chrome/browser/views/status_bubble_views.cc
index 002cf7f..cf8a18a 100644
--- a/chrome/browser/views/status_bubble_views.cc
+++ b/chrome/browser/views/status_bubble_views.cc
@@ -6,13 +6,13 @@
#include <algorithm>
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "app/animation.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/views/controls/label.h"
#include "chrome/views/widget/root_view.h"
#include "chrome/views/widget/widget_win.h"
diff --git a/chrome/browser/views/tabs/tab.cc b/chrome/browser/views/tabs/tab.cc
index e79b77c..ee2638f 100644
--- a/chrome/browser/views/tabs/tab.cc
+++ b/chrome/browser/views/tabs/tab.cc
@@ -4,11 +4,11 @@
#include "chrome/browser/views/tabs/tab.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/size.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/path.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/menu/chrome_menu.h"
#include "chrome/views/widget/tooltip_manager.h"
#include "chrome/views/widget/widget.h"
diff --git a/chrome/browser/views/tabs/tab_renderer.cc b/chrome/browser/views/tabs/tab_renderer.cc
index e9608bd..7f1d805 100644
--- a/chrome/browser/views/tabs/tab_renderer.cc
+++ b/chrome/browser/views/tabs/tab_renderer.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/views/tabs/tab_renderer.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/profile.h"
@@ -13,7 +14,6 @@
#include "chrome/browser/tabs/tab_strip_model.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "chrome/views/widget/widget.h"
#include "chrome/views/window/non_client_view.h"
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc
index 9d301f0..0d314ab 100644
--- a/chrome/browser/views/tabs/tab_strip.cc
+++ b/chrome/browser/views/tabs/tab_strip.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/views/tabs/tab_strip.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "app/slide_animation.h"
#include "base/gfx/size.h"
@@ -19,7 +20,6 @@
#include "chrome/common/drag_drop_types.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/path.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/win_util.h"
diff --git a/chrome/browser/views/toolbar_view.cc b/chrome/browser/views/toolbar_view.cc
index ef6d5e2..d17fa46 100644
--- a/chrome/browser/views/toolbar_view.cc
+++ b/chrome/browser/views/toolbar_view.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/logging.h"
@@ -33,7 +34,6 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/drag_drop_types.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/common/pref_names.h"
diff --git a/chrome/browser/views/uninstall_dialog.cc b/chrome/browser/views/uninstall_dialog.cc
index 51e7023..59ff2d5 100644
--- a/chrome/browser/views/uninstall_dialog.cc
+++ b/chrome/browser/views/uninstall_dialog.cc
@@ -4,8 +4,8 @@
#include "chrome/browser/views/uninstall_dialog.h"
+#include "app/l10n_util.h"
#include "base/message_loop.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/result_codes.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/views/controls/message_box_view.h"
@@ -59,5 +59,3 @@ UninstallDialog::UninstallDialog(int& user_selection)
UninstallDialog::~UninstallDialog() {
MessageLoop::current()->Quit();
}
-
-
diff --git a/chrome/browser/views/user_data_dir_dialog.cc b/chrome/browser/views/user_data_dir_dialog.cc
index 79bcd4e..c670ce8 100644
--- a/chrome/browser/views/user_data_dir_dialog.cc
+++ b/chrome/browser/views/user_data_dir_dialog.cc
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "chrome/browser/views/user_data_dir_dialog.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/views/controls/message_box_view.h"
#include "chrome/views/widget/widget.h"
diff --git a/chrome/browser/webdata/web_database.cc b/chrome/browser/webdata/web_database.cc
index 9497885..e6a1731 100644
--- a/chrome/browser/webdata/web_database.cc
+++ b/chrome/browser/webdata/web_database.cc
@@ -8,13 +8,13 @@
#include <limits>
#include <vector>
+#include "app/l10n_util.h"
#include "base/gfx/png_decoder.h"
#include "base/gfx/png_encoder.h"
#include "base/string_util.h"
#include "base/time.h"
#include "chrome/browser/history/history_database.h"
#include "chrome/browser/search_engines/template_url.h"
-#include "chrome/common/l10n_util.h"
#include "webkit/glue/password_form.h"
// Encryptor is the *wrong* way of doing things; we need to turn it into a
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 9d6a262..1d75fa5 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -126,6 +126,11 @@
# All .cc, .h, and .mm files under app/ except for tests.
'../app/animation.cc',
'../app/animation.h',
+ '../app/l10n_util.cc',
+ '../app/l10n_util.h',
+ '../app/l10n_util_posix.cc',
+ '../app/l10n_util_win.cc',
+ '../app/l10n_util_win.h',
'../app/resource_bundle.cc',
'../app/resource_bundle.h',
'../app/resource_bundle_win.cc',
@@ -313,11 +318,6 @@
'common/json_value_serializer.h',
'common/jstemplate_builder.cc',
'common/jstemplate_builder.h',
- 'common/l10n_util.cc',
- 'common/l10n_util.h',
- 'common/l10n_util_posix.cc',
- 'common/l10n_util_win.cc',
- 'common/l10n_util_win.h',
'common/libxml_utils.cc',
'common/libxml_utils.h',
'common/logging_chrome.cc',
@@ -2503,7 +2503,7 @@
'common/ipc_sync_message_unittest.cc',
'common/ipc_sync_message_unittest.h',
'common/json_value_serializer_unittest.cc',
- 'common/l10n_util_unittest.cc',
+ '../app/l10n_util_unittest.cc',
'common/mru_cache_unittest.cc',
'common/net/url_util_unittest.cc',
'common/notification_service_unittest.cc',
diff --git a/chrome/common/child_process_info.cc b/chrome/common/child_process_info.cc
index 5ef4469..bd4c070 100644
--- a/chrome/common/child_process_info.cc
+++ b/chrome/common/child_process_info.cc
@@ -6,11 +6,11 @@
#include <limits>
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/process_util.h"
#include "base/rand_util.h"
#include "base/string_util.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
std::wstring ChildProcessInfo::GetTypeNameInEnglish(
diff --git a/chrome/common/common.vcproj b/chrome/common/common.vcproj
index 27db826..e8519d6 100644
--- a/chrome/common/common.vcproj
+++ b/chrome/common/common.vcproj
@@ -534,22 +534,6 @@
>
</File>
<File
- RelativePath=".\l10n_util.cc"
- >
- </File>
- <File
- RelativePath=".\l10n_util.h"
- >
- </File>
- <File
- RelativePath=".\l10n_util_win.cc"
- >
- </File>
- <File
- RelativePath=".\l10n_util_win.h"
- >
- </File>
- <File
RelativePath=".\libxml_utils.cc"
>
</File>
diff --git a/chrome/common/common_glue.cc b/chrome/common/common_glue.cc
index c79a713..00e9817 100644
--- a/chrome/common/common_glue.cc
+++ b/chrome/common/common_glue.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "app/l10n_util.h"
#include "base/command_line.h"
#include "base/path_service.h"
#include "base/string16.h"
@@ -9,7 +10,6 @@
#include "build/build_config.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/plugin/npobject_util.h"
#include "googleurl/src/url_util.h"
#include "webkit/glue/webkit_glue.h"
diff --git a/chrome/common/gfx/chrome_canvas.cc b/chrome/common/gfx/chrome_canvas.cc
index 23bc1c9..328bf65 100644
--- a/chrome/common/gfx/chrome_canvas.cc
+++ b/chrome/common/gfx/chrome_canvas.cc
@@ -6,11 +6,11 @@
#include <limits>
+#include "app/l10n_util.h"
#include "base/gfx/rect.h"
#include "base/logging.h"
#include "skia/include/SkShader.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
bool ChromeCanvas::GetClipRect(gfx::Rect* r) {
SkRect clip;
diff --git a/chrome/common/gfx/chrome_canvas_win.cc b/chrome/common/gfx/chrome_canvas_win.cc
index 1f14703..aefb640 100644
--- a/chrome/common/gfx/chrome_canvas_win.cc
+++ b/chrome/common/gfx/chrome_canvas_win.cc
@@ -6,10 +6,10 @@
#include <limits>
+#include "app/l10n_util.h"
#include "base/gfx/rect.h"
#include "skia/include/SkShader.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
namespace {
diff --git a/chrome/common/gfx/chrome_font_win.cc b/chrome/common/gfx/chrome_font_win.cc
index acfc40e..71b10d8 100644
--- a/chrome/common/gfx/chrome_font_win.cc
+++ b/chrome/common/gfx/chrome_font_win.cc
@@ -9,9 +9,9 @@
#include <algorithm>
+#include "app/l10n_util_win.h"
#include "base/logging.h"
#include "base/win_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
diff --git a/chrome/common/l10n_util.cc b/chrome/common/l10n_util.cc
deleted file mode 100644
index 6e6849c..0000000
--- a/chrome/common/l10n_util.cc
+++ /dev/null
@@ -1,745 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-#include "build/build_config.h"
-
-#include "chrome/common/l10n_util.h"
-
-#include "app/resource_bundle.h"
-#include "base/command_line.h"
-#include "base/file_util.h"
-#include "base/path_service.h"
-#include "base/scoped_ptr.h"
-#include "base/string16.h"
-#include "base/string_piece.h"
-#include "base/string_util.h"
-#include "base/sys_string_conversions.h"
-#include "chrome/common/chrome_paths.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/common/gfx/chrome_canvas.h"
-#include "unicode/uscript.h"
-
-// TODO(playmobil): remove this undef once SkPostConfig.h is fixed.
-// skia/include/corecg/SkPostConfig.h #defines strcasecmp() so we can't use
-// base::strcasecmp() without #undefing it here.
-#undef strcasecmp
-
-namespace {
-
-#if defined(OS_WIN)
-static const FilePath::CharType kLocaleFileExtension[] = L".dll";
-#elif defined(OS_POSIX)
-static const FilePath::CharType kLocaleFileExtension[] = ".pak";
-#endif
-
-// Added to the end of strings that are too big in TrucateString.
-static const wchar_t* const kElideString = L"\x2026";
-
-// Get language and region from the OS.
-void GetLanguageAndRegionFromOS(std::string* lang, std::string* region) {
- // Later we may have to change this to be OS-dependent so that
- // it's not affected by ICU's default locale. It's all right
- // to do this way because SetICUDefaultLocale is internal
- // to this file and we know where/when it's called.
- Locale locale = Locale::getDefault();
- const char* language = locale.getLanguage();
- const char* country = locale.getCountry();
- DCHECK(language);
- *lang = language;
- *region = country;
-}
-
-// Convert Chrome locale name to ICU locale name
-std::string ICULocaleName(const std::wstring& locale_string) {
- // If not Spanish, just return it.
- if (locale_string.substr(0, 2) != L"es")
- return WideToASCII(locale_string);
- // Expand es to es-ES.
- if (LowerCaseEqualsASCII(locale_string, "es"))
- return "es-ES";
- // Map es-419 (Latin American Spanish) to es-FOO depending on the system
- // locale. If it's es-RR other than es-ES, map to es-RR. Otherwise, map
- // to es-MX (the most populous in Spanish-speaking Latin America).
- if (LowerCaseEqualsASCII(locale_string, "es-419")) {
- std::string lang, region;
- GetLanguageAndRegionFromOS(&lang, &region);
- if (LowerCaseEqualsASCII(lang, "es") &&
- !LowerCaseEqualsASCII(region, "es")) {
- lang.append("-");
- lang.append(region);
- return lang;
- }
- return "es-MX";
- }
- // Currently, Chrome has only "es" and "es-419", but later we may have
- // more specific "es-RR".
- return WideToASCII(locale_string);
-}
-
-// Sets the default locale of ICU.
-// When the application locale (UI locale) of Chrome is specified with
-// '--lang' command line flag or 'intl.app_locale' entry in the "Preferences",
-// the default locale of ICU need to be changed to match the application locale
-// so that ICU functions work correctly in a locale-dependent manner.
-// This is handy in that we don't have to call GetApplicationLocale()
-// everytime we call locale-dependent ICU APIs as long as we make sure
-// that this is called before any locale-dependent API is called.
-UBool SetICUDefaultLocale(const std::wstring& locale_string) {
- Locale locale(ICULocaleName(locale_string).c_str());
- UErrorCode error_code = U_ZERO_ERROR;
- Locale::setDefault(locale, error_code);
- // This return value is actually bogus because Locale object is
- // an ID and setDefault seems to always succeed (regardless of the
- // presence of actual locale data). However,
- // it does not hurt to have it as a sanity check.
- return U_SUCCESS(error_code);
-}
-
-// Returns true if |locale_name| has an alias in the ICU data file.
-bool IsDuplicateName(const std::string& locale_name) {
- static const char* const kDuplicateNames[] = {
- "en",
- "pt",
- "zh",
- "zh_hans_cn",
- "zh_hant_tw"
- };
-
- // Skip all 'es_RR'. Currently, we use 'es' for es-ES (Spanish in Spain).
- // 'es-419' (Spanish in Latin America) is not available in ICU so that it
- // has to be added manually in GetAvailableLocales().
- if (LowerCaseEqualsASCII(locale_name.substr(0, 3), "es_"))
- return true;
- for (size_t i = 0; i < arraysize(kDuplicateNames); ++i) {
- if (base::strcasecmp(kDuplicateNames[i], locale_name.c_str()) == 0)
- return true;
- }
- return false;
-}
-
-bool IsLocaleAvailable(const std::wstring& locale,
- const std::wstring& locale_path) {
- std::wstring test_locale = locale;
- // If locale has any illegal characters in it, we don't want to try to
- // load it because it may be pointing outside the locale data file directory.
- file_util::ReplaceIllegalCharacters(&test_locale, ' ');
- if (test_locale != locale)
- return false;
-
- if (!l10n_util::IsLocaleSupportedByOS(locale))
- return false;
-
- FilePath test_path = FilePath::FromWStringHack(locale_path)
- .Append(FilePath::FromWStringHack(locale))
- .ReplaceExtension(kLocaleFileExtension);
- return file_util::PathExists(test_path) && SetICUDefaultLocale(locale);
-}
-
-bool CheckAndResolveLocale(const std::wstring& locale,
- const std::wstring& locale_path,
- std::wstring* resolved_locale) {
- if (IsLocaleAvailable(locale, locale_path)) {
- *resolved_locale = locale;
- return true;
- }
- // If the locale matches language but not country, use that instead.
- // TODO(jungshik) : Nothing is done about languages that Chrome
- // does not support but available on Windows. We fall
- // back to en-US in GetApplicationLocale so that it's a not critical,
- // but we can do better.
- std::wstring::size_type hyphen_pos = locale.find(L'-');
- if (hyphen_pos != std::wstring::npos && hyphen_pos > 0) {
- std::wstring lang(locale, 0, hyphen_pos);
- std::wstring region(locale, hyphen_pos + 1);
- std::wstring tmp_locale(lang);
- // Map es-RR other than es-ES to es-419 (Chrome's Latin American
- // Spanish locale).
- if (LowerCaseEqualsASCII(lang, "es") && !LowerCaseEqualsASCII(region, "es"))
- tmp_locale.append(L"-419");
- else if (LowerCaseEqualsASCII(lang, "zh")) {
- // Map zh-HK and zh-MK to zh-TW. Otherwise, zh-FOO is mapped to zh-CN.
- if (LowerCaseEqualsASCII(region, "hk") ||
- LowerCaseEqualsASCII(region, "mk")) {
- tmp_locale.append(L"-TW");
- } else {
- tmp_locale.append(L"-CN");
- }
- }
- if (IsLocaleAvailable(tmp_locale, locale_path)) {
- resolved_locale->swap(tmp_locale);
- return true;
- }
- }
-
- // Google updater uses no, iw and en for our nb, he, and en-US.
- // We need to map them to our codes.
- struct {
- const char* source;
- const wchar_t* dest;} alias_map[] = {
- {"no", L"nb"},
- {"tl", L"fil"},
- {"iw", L"he"},
- {"en", L"en-US"},
- };
-
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(alias_map); ++i) {
- if (LowerCaseEqualsASCII(locale, alias_map[i].source)) {
- std::wstring tmp_locale(alias_map[i].dest);
- if (IsLocaleAvailable(tmp_locale, locale_path)) {
- resolved_locale->swap(tmp_locale);
- return true;
- }
- }
- }
-
- return false;
-}
-
-// Get the locale of the operating system. The return value is of the form
-// language[-country] (e.g., en-US) where the language is the 2 letter code from
-// ISO-639.
-std::wstring GetSystemLocale() {
- std::string language, region;
- GetLanguageAndRegionFromOS(&language, &region);
- std::string ret;
- if (!language.empty())
- ret.append(language);
- if (!region.empty()) {
- ret.append("-");
- ret.append(region);
- }
- return ASCIIToWide(ret);
-}
-
-} // namespace
-
-namespace l10n_util {
-
-// Represents the locale-specific text direction.
-static TextDirection g_text_direction = UNKNOWN_DIRECTION;
-
-std::wstring GetApplicationLocale(const std::wstring& pref_locale) {
-#if defined(OS_MACOSX)
- // On the mac, we don't want to test preferences or ICU for the language,
- // we want to use whatever Cocoa is using when it loaded the main nib file.
- // It handles all the mapping and fallbacks for us, we just need to ask
- // Cocoa.
- // TODO(pinkerton): break this out into a .mm and ask Cocoa.
- return L"en";
-#else
- FilePath locale_path;
- PathService::Get(chrome::DIR_LOCALES, &locale_path);
- std::wstring resolved_locale;
-
- // First, check to see if there's a --lang flag.
- const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
- const std::wstring& lang_arg =
- parsed_command_line.GetSwitchValue(switches::kLang);
- if (!lang_arg.empty()) {
- if (CheckAndResolveLocale(lang_arg, locale_path.ToWStringHack(),
- &resolved_locale))
- return resolved_locale;
- }
-
- // Second, try user prefs.
- if (!pref_locale.empty()) {
- if (CheckAndResolveLocale(pref_locale, locale_path.ToWStringHack(),
- &resolved_locale))
- return resolved_locale;
- }
-
- // Next, try the system locale.
- const std::wstring system_locale = GetSystemLocale();
- if (CheckAndResolveLocale(system_locale, locale_path.ToWStringHack(),
- &resolved_locale))
- return resolved_locale;
-
- // Fallback on en-US.
- const std::wstring fallback_locale(L"en-US");
- if (IsLocaleAvailable(fallback_locale, locale_path.ToWStringHack()))
- return fallback_locale;
-
- // No locale data file was found; we shouldn't get here.
- NOTREACHED();
-
- return std::wstring();
-#endif
-}
-
-std::wstring GetLocalName(const std::string& locale_code_str,
- const std::wstring& app_locale_wstr,
- bool is_for_ui) {
- const std::string app_locale = WideToASCII(app_locale_wstr);
- const char* locale_code = locale_code_str.c_str();
- UErrorCode error = U_ZERO_ERROR;
- const int buffer_size = 1024;
-
-#if defined(WCHAR_T_IS_UTF32)
- string16 name_local_utf16;
- int actual_size = uloc_getDisplayName(locale_code, app_locale.c_str(),
- WriteInto(&name_local_utf16, buffer_size + 1), buffer_size, &error);
- std::wstring name_local = UTF16ToWide(name_local_utf16);
-#else
- std::wstring name_local;
- int actual_size = uloc_getDisplayName(locale_code, app_locale.c_str(),
- WriteInto(&name_local, buffer_size + 1), buffer_size, &error);
-#endif
- DCHECK(U_SUCCESS(error));
- name_local.resize(actual_size);
- // Add an RTL mark so parentheses are properly placed.
- if (is_for_ui && GetTextDirection() == RIGHT_TO_LEFT) {
- name_local.push_back(static_cast<wchar_t>(kRightToLeftMark));
- }
- return name_local;
-}
-
-std::wstring GetString(int message_id) {
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- return UTF16ToWide(rb.GetLocalizedString(message_id));
-}
-
-std::string GetStringUTF8(int message_id) {
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- return UTF16ToUTF8(rb.GetLocalizedString(message_id));
-}
-
-static string16 GetStringF(int message_id,
- const string16& a,
- const string16& b,
- const string16& c,
- const string16& d,
- std::vector<size_t>* offsets) {
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- const string16& format_string = rb.GetLocalizedString(message_id);
- string16 formatted = ReplaceStringPlaceholders(format_string, a, b, c, d,
- offsets);
- return formatted;
-}
-
-std::wstring GetStringF(int message_id, const std::wstring& a) {
- return UTF16ToWide(GetStringF(message_id, WideToUTF16(a), string16(),
- string16(), string16(), NULL));
-}
-
-std::wstring GetStringF(int message_id,
- const std::wstring& a,
- const std::wstring& b) {
- return UTF16ToWide(GetStringF(message_id, WideToUTF16(a), WideToUTF16(b),
- string16(), string16(), NULL));
-}
-
-std::wstring GetStringF(int message_id,
- const std::wstring& a,
- const std::wstring& b,
- const std::wstring& c) {
- return UTF16ToWide(GetStringF(message_id, WideToUTF16(a), WideToUTF16(b),
- WideToUTF16(c), string16(), NULL));
-}
-
-std::string GetStringFUTF8(int message_id,
- const string16& a) {
- return UTF16ToUTF8(GetStringF(message_id, a, string16(), string16(),
- string16(), NULL));
-}
-
-std::string GetStringFUTF8(int message_id,
- const string16& a,
- const string16& b) {
- return UTF16ToUTF8(GetStringF(message_id, a, b, string16(), string16(),
- NULL));
-}
-
-std::string GetStringFUTF8(int message_id,
- const string16& a,
- const string16& b,
- const string16& c) {
- return UTF16ToUTF8(GetStringF(message_id, a, b, c, string16(), NULL));
-}
-
-std::wstring GetStringF(int message_id, const std::wstring& a, size_t* offset) {
- DCHECK(offset);
- std::vector<size_t> offsets;
- string16 result = GetStringF(message_id, WideToUTF16(a), string16(),
- string16(), string16(), &offsets);
- DCHECK(offsets.size() == 1);
- *offset = offsets[0];
- return UTF16ToWide(result);
-}
-
-std::wstring GetStringF(int message_id,
- const std::wstring& a,
- const std::wstring& b,
- std::vector<size_t>* offsets) {
- return UTF16ToWide(GetStringF(message_id, WideToUTF16(a), WideToUTF16(b),
- string16(), string16(), offsets));
-}
-
-std::wstring GetStringF(int message_id, int a) {
- return GetStringF(message_id, IntToWString(a));
-}
-
-std::wstring GetStringF(int message_id, int64 a) {
- return GetStringF(message_id, Int64ToWString(a));
-}
-
-std::wstring TruncateString(const std::wstring& string, size_t length) {
- if (string.size() <= length)
- // String fits, return it.
- return string;
-
- if (length == 0) {
- // No room for the ellide string, return an empty string.
- return std::wstring(L"");
- }
- size_t max = length - 1;
-
- if (max == 0) {
- // Just enough room for the elide string.
- return kElideString;
- }
-
-#if defined(WCHAR_T_IS_UTF32)
- const string16 string_utf16 = WideToUTF16(string);
-#else
- const std::wstring &string_utf16 = string;
-#endif
- // Use a line iterator to find the first boundary.
- UErrorCode status = U_ZERO_ERROR;
- scoped_ptr<RuleBasedBreakIterator> bi(static_cast<RuleBasedBreakIterator*>(
- RuleBasedBreakIterator::createLineInstance(Locale::getDefault(),
- status)));
- if (U_FAILURE(status))
- return string.substr(0, max) + kElideString;
- bi->setText(string_utf16.c_str());
- int32_t index = bi->preceding(static_cast<int32_t>(max));
- if (index == BreakIterator::DONE) {
- index = static_cast<int32_t>(max);
- } else {
- // Found a valid break (may be the beginning of the string). Now use
- // a character iterator to find the previous non-whitespace character.
- StringCharacterIterator char_iterator(string_utf16.c_str());
- if (index == 0) {
- // No valid line breaks. Start at the end again. This ensures we break
- // on a valid character boundary.
- index = static_cast<int32_t>(max);
- }
- char_iterator.setIndex(index);
- while (char_iterator.hasPrevious()) {
- char_iterator.previous();
- if (!(u_isspace(char_iterator.current()) ||
- u_charType(char_iterator.current()) == U_CONTROL_CHAR ||
- u_charType(char_iterator.current()) == U_NON_SPACING_MARK)) {
- // Not a whitespace character. Advance the iterator so that we
- // include the current character in the truncated string.
- char_iterator.next();
- break;
- }
- }
- if (char_iterator.hasPrevious()) {
- // Found a valid break point.
- index = char_iterator.getIndex();
- } else {
- // String has leading whitespace, return the elide string.
- return kElideString;
- }
- }
- return string.substr(0, index) + kElideString;
-}
-
-#if defined(WCHAR_T_IS_UTF32)
-std::wstring ToLower(const std::wstring& string) {
- string16 string_utf16 = WideToUTF16(string);
- UnicodeString lower_u_str(
- UnicodeString(string_utf16.c_str()).toLower(Locale::getDefault()));
- string16 result_utf16;
- lower_u_str.extract(0, lower_u_str.length(),
- WriteInto(&result_utf16, lower_u_str.length() + 1));
- std::wstring result = UTF16ToWide(result_utf16);
- return result;
-}
-#else
-std::wstring ToLower(const std::wstring& string) {
- UnicodeString lower_u_str(
- UnicodeString(string.c_str()).toLower(Locale::getDefault()));
- std::wstring result;
- lower_u_str.extract(0, lower_u_str.length(),
- WriteInto(&result, lower_u_str.length() + 1));
- return result;
-}
-#endif // defined(WCHAR_T_IS_UTF32)
-
-// Returns the text direction for the default ICU locale. It is assumed
-// that SetICUDefaultLocale has been called to set the default locale to
-// the UI locale of Chrome.
-TextDirection GetTextDirection() {
- if (g_text_direction == UNKNOWN_DIRECTION) {
- const Locale& locale = Locale::getDefault();
- g_text_direction = GetTextDirectionForLocale(locale.getName());
- }
- return g_text_direction;
-}
-
-TextDirection GetTextDirectionForLocale(const char* locale_name) {
- UScriptCode scripts[10]; // 10 scripts should be enough for any locale.
- UErrorCode error = U_ZERO_ERROR;
- int n = uscript_getCode(locale_name, scripts, 10, &error);
- DCHECK(U_SUCCESS(error) && n > 0);
-
- // Checking Arabic and Hebrew scripts cover Arabic, Hebrew, Farsi,
- // Urdu and Azerbaijani written in Arabic. Syriac script
- // (another RTL) is not a living script and we didn't yet localize
- // to locales using other living RTL scripts such as Thaana and N'ko.
- // TODO(jungshik): Use a new ICU API, uloc_getCharacterOrientation to avoid
- // 'hardcoded-comparision' with Arabic and Hebrew scripts once we
- // upgrade ICU to 4.0 or later or port it to our copy of ICU.
- if (scripts[0] == USCRIPT_ARABIC || scripts[0] == USCRIPT_HEBREW)
- return RIGHT_TO_LEFT;
- return LEFT_TO_RIGHT;
-}
-
-TextDirection GetFirstStrongCharacterDirection(const std::wstring& text) {
-#if defined(WCHAR_T_IS_UTF32)
- string16 text_utf16 = WideToUTF16(text);
- const UChar* string = text_utf16.c_str();
-#else
- const UChar* string = text.c_str();
-#endif
- size_t length = text.length();
- size_t position = 0;
- while (position < length) {
- UChar32 character;
- size_t next_position = position;
- U16_NEXT(string, next_position, length, character);
-
- // Now that we have the character, we use ICU in order to query for the
- // appropriate Unicode BiDi character type.
- int32_t property = u_getIntPropertyValue(character, UCHAR_BIDI_CLASS);
- if ((property == U_RIGHT_TO_LEFT) ||
- (property == U_RIGHT_TO_LEFT_ARABIC) ||
- (property == U_RIGHT_TO_LEFT_EMBEDDING) ||
- (property == U_RIGHT_TO_LEFT_OVERRIDE)) {
- return RIGHT_TO_LEFT;
- } else if ((property == U_LEFT_TO_RIGHT) ||
- (property == U_LEFT_TO_RIGHT_EMBEDDING) ||
- (property == U_LEFT_TO_RIGHT_OVERRIDE)) {
- return LEFT_TO_RIGHT;
- }
-
- position = next_position;
- }
-
- return LEFT_TO_RIGHT;
-}
-
-bool AdjustStringForLocaleDirection(const std::wstring& text,
- std::wstring* localized_text) {
- if (GetTextDirection() == LEFT_TO_RIGHT || text.length() == 0)
- return false;
-
- // Marking the string as LTR if the locale is RTL and the string does not
- // contain strong RTL characters. Otherwise, mark the string as RTL.
- *localized_text = text;
- bool has_rtl_chars = StringContainsStrongRTLChars(text);
- if (!has_rtl_chars)
- WrapStringWithLTRFormatting(localized_text);
- else
- WrapStringWithRTLFormatting(localized_text);
-
- return true;
-}
-
-bool StringContainsStrongRTLChars(const std::wstring& text) {
-#if defined(WCHAR_T_IS_UTF32)
- string16 text_utf16 = WideToUTF16(text);
- const UChar* string = text_utf16.c_str();
-#else
- const UChar* string = text.c_str();
-#endif
- size_t length = text.length();
- size_t position = 0;
- while (position < length) {
- UChar32 character;
- size_t next_position = position;
- U16_NEXT(string, next_position, length, character);
-
- // Now that we have the character, we use ICU in order to query for the
- // appropriate Unicode BiDi character type.
- int32_t property = u_getIntPropertyValue(character, UCHAR_BIDI_CLASS);
- if ((property == U_RIGHT_TO_LEFT) || (property == U_RIGHT_TO_LEFT_ARABIC))
- return true;
-
- position = next_position;
- }
-
- return false;
-}
-
-void WrapStringWithLTRFormatting(std::wstring* text) {
- // Inserting an LRE (Left-To-Right Embedding) mark as the first character.
- text->insert(0, 1, static_cast<wchar_t>(kLeftToRightEmbeddingMark));
-
- // Inserting a PDF (Pop Directional Formatting) mark as the last character.
- text->push_back(static_cast<wchar_t>(kPopDirectionalFormatting));
-}
-
-void WrapStringWithRTLFormatting(std::wstring* text) {
- // Inserting an RLE (Right-To-Left Embedding) mark as the first character.
- text->insert(0, 1, static_cast<wchar_t>(kRightToLeftEmbeddingMark));
-
- // Inserting a PDF (Pop Directional Formatting) mark as the last character.
- text->push_back(static_cast<wchar_t>(kPopDirectionalFormatting));
-}
-
-void WrapPathWithLTRFormatting(const FilePath& path,
- string16* rtl_safe_path) {
- // Wrap the overall path with LRE-PDF pair which essentialy marks the
- // string as a Left-To-Right string.
- // Inserting an LRE (Left-To-Right Embedding) mark as the first character.
- rtl_safe_path->push_back(kLeftToRightEmbeddingMark);
-#if defined(OS_MACOSX)
- rtl_safe_path->append(UTF8ToUTF16(path.value()));
-#elif defined(OS_WIN)
- rtl_safe_path->append(path.value());
-#else // defined(OS_LINUX)
- std::wstring wide_path = base::SysNativeMBToWide(path.value());
- rtl_safe_path->append(WideToUTF16(wide_path));
-#endif
- // Inserting a PDF (Pop Directional Formatting) mark as the last character.
- rtl_safe_path->push_back(kPopDirectionalFormatting);
-}
-
-int DefaultCanvasTextAlignment() {
- if (GetTextDirection() == LEFT_TO_RIGHT) {
- return ChromeCanvas::TEXT_ALIGN_LEFT;
- } else {
- return ChromeCanvas::TEXT_ALIGN_RIGHT;
- }
-}
-
-
-// Compares the character data stored in two different strings by specified
-// Collator instance.
-UCollationResult CompareStringWithCollator(const Collator* collator,
- const std::wstring& lhs,
- const std::wstring& rhs) {
- DCHECK(collator);
- UErrorCode error = U_ZERO_ERROR;
-#if defined(WCHAR_T_IS_UTF32)
- // Need to convert to UTF-16 to be compatible with UnicodeString's
- // constructor.
- string16 lhs_utf16 = WideToUTF16(lhs);
- string16 rhs_utf16 = WideToUTF16(rhs);
-
- UCollationResult result = collator->compare(
- static_cast<const UChar*>(lhs_utf16.c_str()),
- static_cast<int>(lhs_utf16.length()),
- static_cast<const UChar*>(rhs_utf16.c_str()),
- static_cast<int>(rhs_utf16.length()),
- error);
-#else
- UCollationResult result = collator->compare(
- static_cast<const UChar*>(lhs.c_str()), static_cast<int>(lhs.length()),
- static_cast<const UChar*>(rhs.c_str()), static_cast<int>(rhs.length()),
- error);
-#endif
- DCHECK(U_SUCCESS(error));
- return result;
-}
-
-// Specialization of operator() method for std::wstring version.
-template <>
-bool StringComparator<std::wstring>::operator()(const std::wstring& lhs,
- const std::wstring& rhs) {
- // If we can not get collator instance for specified locale, just do simple
- // string compare.
- if (!collator_)
- return lhs < rhs;
- return CompareStringWithCollator(collator_, lhs, rhs) == UCOL_LESS;
-};
-
-void SortStrings(const std::wstring& locale,
- std::vector<std::wstring>* strings) {
- SortVectorWithStringKey(locale, strings, false);
-}
-
-const std::vector<std::string>& GetAvailableLocales() {
- static std::vector<std::string> locales;
- if (locales.empty()) {
- int num_locales = uloc_countAvailable();
- for (int i = 0; i < num_locales; ++i) {
- std::string locale_name = uloc_getAvailable(i);
- // Filter out the names that have aliases.
- if (IsDuplicateName(locale_name))
- continue;
- if (!IsLocaleSupportedByOS(ASCIIToWide(locale_name)))
- continue;
- // Normalize underscores to hyphens because that's what our locale files
- // use.
- std::replace(locale_name.begin(), locale_name.end(), '_', '-');
-
- // Map the Chinese locale names over to zh-CN and zh-TW.
- if (LowerCaseEqualsASCII(locale_name, "zh-hans")) {
- locale_name = "zh-CN";
- } else if (LowerCaseEqualsASCII(locale_name, "zh-hant")) {
- locale_name = "zh-TW";
- }
- locales.push_back(locale_name);
- }
-
- // Manually add 'es-419' to the list. See the comment in IsDuplicateName().
- locales.push_back("es-419");
- }
- return locales;
-}
-
-BiDiLineIterator::~BiDiLineIterator() {
- if (bidi_) {
- ubidi_close(bidi_);
- bidi_ = NULL;
- }
-}
-
-UBool BiDiLineIterator::Open(const std::wstring& text,
- bool right_to_left,
- bool url) {
- DCHECK(bidi_ == NULL);
- UErrorCode error = U_ZERO_ERROR;
- bidi_ = ubidi_openSized(static_cast<int>(text.length()), 0, &error);
- if (U_FAILURE(error))
- return false;
- if (right_to_left && url)
- ubidi_setReorderingMode(bidi_, UBIDI_REORDER_RUNS_ONLY);
-#if defined(WCHAR_T_IS_UTF32)
- const string16 text_utf16 = WideToUTF16(text);
-#else
- const std::wstring &text_utf16 = text;
-#endif // U_SIZEOF_WCHAR_T != 4
- ubidi_setPara(bidi_, text_utf16.data(), static_cast<int>(text_utf16.length()),
- right_to_left ? UBIDI_DEFAULT_RTL : UBIDI_DEFAULT_LTR,
- NULL, &error);
- return U_SUCCESS(error);
-}
-
-int BiDiLineIterator::CountRuns() {
- DCHECK(bidi_ != NULL);
- UErrorCode error = U_ZERO_ERROR;
- const int runs = ubidi_countRuns(bidi_, &error);
- return U_SUCCESS(error) ? runs : 0;
-}
-
-UBiDiDirection BiDiLineIterator::GetVisualRun(int index,
- int* start,
- int* length) {
- DCHECK(bidi_ != NULL);
- return ubidi_getVisualRun(bidi_, index, start, length);
-}
-
-void BiDiLineIterator::GetLogicalRun(int start,
- int* end,
- UBiDiLevel* level) {
- DCHECK(bidi_ != NULL);
- ubidi_getLogicalRun(bidi_, start, end, level);
-}
-
-}
diff --git a/chrome/common/l10n_util.h b/chrome/common/l10n_util.h
deleted file mode 100644
index 828112c..0000000
--- a/chrome/common/l10n_util.h
+++ /dev/null
@@ -1,370 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-// This file contains utility functions for dealing with localized
-// content.
-
-#ifndef CHROME_COMMON_L10N_UTIL_H_
-#define CHROME_COMMON_L10N_UTIL_H_
-
-#include "build/build_config.h"
-
-#include <algorithm>
-#include <functional>
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/logging.h"
-#include "base/scoped_ptr.h"
-#include "base/string16.h"
-#include "base/string_util.h"
-#include "unicode/coll.h"
-#include "unicode/locid.h"
-#include "unicode/rbbi.h"
-#include "unicode/ubidi.h"
-#include "unicode/uchar.h"
-
-class FilePath;
-class PrefService;
-
-namespace l10n_util {
-
-const char16 kRightToLeftMark = 0x200f;
-const char16 kLeftToRightMark = 0x200e;
-const char16 kLeftToRightEmbeddingMark = 0x202A;
-const char16 kRightToLeftEmbeddingMark = 0x202B;
-const char16 kPopDirectionalFormatting = 0x202C;
-
-// This method is responsible for determining the locale as defined below. In
-// nearly all cases you shouldn't call this, rather use GetApplicationLocale
-// defined on browser_process.
-//
-// Returns the locale used by the Application. First we use the value from the
-// command line (--lang), second we try the value in the prefs file (passed in
-// as |pref_locale|), finally, we fall back on the system locale. We only return
-// a value if there's a corresponding resource DLL for the locale. Otherwise,
-// we fall back to en-us.
-std::wstring GetApplicationLocale(const std::wstring& pref_locale);
-
-// Given a locale code, return true if the OS is capable of supporting it.
-// For instance, Oriya is not well supported on Windows XP and we return
-// false for "or".
-bool IsLocaleSupportedByOS(const std::wstring& locale);
-
-// This method returns the Local Name of the Locale Code. For example, for
-// |local_code_wstr| = "en-US", it returns "English (United States)".
-// |app_locale_wstr| can be obtained in the UI thread - for example:
-// const std::wstring app_locale_wstr = g_browser_process->
-// GetApplicationLocale();
-// If |is_for_ui| is true, U+200F is appended so that it can be
-// rendered properly in a RTL Chrome.
-std::wstring GetLocalName(const std::string& locale_code_str,
- const std::wstring& app_locale_wstr,
- bool is_for_ui);
-
-// Pulls resource string from the string bundle and returns it.
-std::wstring GetString(int message_id);
-std::string GetStringUTF8(int message_id);
-
-// Get a resource string and replace $1-$2-$3 with |a| and |b|
-// respectively. Additionally, $$ is replaced by $.
-std::wstring GetStringF(int message_id,
- const std::wstring& a);
-std::wstring GetStringF(int message_id,
- const std::wstring& a,
- const std::wstring& b);
-std::wstring GetStringF(int message_id,
- const std::wstring& a,
- const std::wstring& b,
- const std::wstring& c);
-std::string GetStringFUTF8(int message_id,
- const string16& a);
-std::string GetStringFUTF8(int message_id,
- const string16& a,
- const string16& b);
-std::string GetStringFUTF8(int message_id,
- const string16& a,
- const string16& b,
- const string16& c);
-
-// Variants that return the offset(s) of the replaced parameters. The
-// vector based version returns offsets ordered by parameter. For example if
-// invoked with a and b offsets[0] gives the offset for a and offsets[1] the
-// offset of b regardless of where the parameters end up in the string.
-std::wstring GetStringF(int message_id,
- const std::wstring& a,
- size_t* offset);
-std::wstring GetStringF(int message_id,
- const std::wstring& a,
- const std::wstring& b,
- std::vector<size_t>* offsets);
-
-// Convenience formatters for a single number.
-std::wstring GetStringF(int message_id, int a);
-std::wstring GetStringF(int message_id, int64 a);
-
-// Truncates the string to length characters. This breaks the string at
-// the first word break before length, adding the horizontal ellipsis
-// character (unicode character 0x2026) to render ...
-// The supplied string is returned if the string has length characters or
-// less.
-std::wstring TruncateString(const std::wstring& string, size_t length);
-
-// Returns the lower case equivalent of string.
-std::wstring ToLower(const std::wstring& string);
-
-// Represents the text direction returned by the GetTextDirection() function.
-enum TextDirection {
- UNKNOWN_DIRECTION,
- RIGHT_TO_LEFT,
- LEFT_TO_RIGHT,
-};
-
-// Returns the text direction for the default ICU locale. It is assumed
-// that SetICUDefaultLocale has been called to set the default locale to
-// the UI locale of Chrome. Its return is one of the following three:
-// * LEFT_TO_RIGHT: Left-To-Right (e.g. English, Chinese, etc.);
-// * RIGHT_TO_LEFT: Right-To-Left (e.g. Arabic, Hebrew, etc.), and;
-// * UNKNOWN_DIRECTION: unknown (or error).
-TextDirection GetTextDirection();
-
-// Returns the text direction for |locale_name|.
-TextDirection GetTextDirectionForLocale(const char* locale_name);
-
-// Given the string in |text|, returns the directionality of the first
-// character with strong directionality in the string. If no character in the
-// text has strong directionality, LEFT_TO_RIGHT is returned. The Bidi
-// character types L, LRE, LRO, R, AL, RLE, and RLO are considered as strong
-// directionality characters. Please refer to http://unicode.org/reports/tr9/
-// for more information.
-TextDirection GetFirstStrongCharacterDirection(const std::wstring& text);
-
-// Given the string in |text|, this function creates a copy of the string with
-// the appropriate Unicode formatting marks that mark the string direction
-// (either left-to-right or right-to-left). The new string is returned in
-// |localized_text|. The function checks both the current locale and the
-// contents of the string in order to determine the direction of the returned
-// string. The function returns true if the string in |text| was properly
-// adjusted.
-//
-// Certain LTR strings are not rendered correctly when the context is RTL. For
-// example, the string "Foo!" will appear as "!Foo" if it is rendered as is in
-// an RTL context. Calling this function will make sure the returned localized
-// string is always treated as a right-to-left string. This is done by
-// inserting certain Unicode formatting marks into the returned string.
-//
-// TODO(idana) bug# 1206120: this function adjusts the string in question only
-// if the current locale is right-to-left. The function does not take care of
-// the opposite case (an RTL string displayed in an LTR context) since
-// adjusting the string involves inserting Unicode formatting characters that
-// Windows does not handle well unless right-to-left language support is
-// installed. Since the English version of Windows doesn't have right-to-left
-// language support installed by default, inserting the direction Unicode mark
-// results in Windows displaying squares.
-bool AdjustStringForLocaleDirection(const std::wstring& text,
- std::wstring* localized_text);
-
-// Returns true if the string contains at least one character with strong right
-// to left directionality; that is, a character with either R or AL Unicode
-// BiDi character type.
-bool StringContainsStrongRTLChars(const std::wstring& text);
-
-// Wraps a string with an LRE-PDF pair which essentialy marks the string as a
-// Left-To-Right string. Doing this is useful in order to make sure LTR
-// strings are rendered properly in an RTL context.
-void WrapStringWithLTRFormatting(std::wstring* text);
-
-// Wraps a string with an RLE-PDF pair which essentialy marks the string as a
-// Right-To-Left string. Doing this is useful in order to make sure RTL
-// strings are rendered properly in an LTR context.
-void WrapStringWithRTLFormatting(std::wstring* text);
-
-// Wraps individual file path components to get them to display correctly in an
-// RTL UI. All filepaths should be passed through this function before display
-// in UI for RTL locales.
-void WrapPathWithLTRFormatting(const FilePath& path,
- string16* rtl_safe_path);
-
-// Returns the default text alignment to be used when drawing text on a
-// ChromeCanvas based on the directionality of the system locale language. This
-// function is used by ChromeCanvas::DrawStringInt when the text alignment is
-// not specified.
-//
-// This function returns either ChromeCanvas::TEXT_ALIGN_LEFT or
-// ChromeCanvas::TEXT_ALIGN_RIGHT.
-int DefaultCanvasTextAlignment();
-
-// Compares the two strings using the specified collator.
-UCollationResult CompareStringWithCollator(const Collator* collator,
- const std::wstring& lhs,
- const std::wstring& rhs);
-
-// Used by SortStringsUsingMethod. Invokes a method on the objects passed to
-// operator (), comparing the string results using a collator.
-template <class T, class Method>
-class StringMethodComparatorWithCollator :
- public std::binary_function<const std::wstring&,
- const std::wstring&,
- bool> {
- public:
- StringMethodComparatorWithCollator(Collator* collator, Method method)
- : collator_(collator),
- method_(method) { }
-
- // Returns true if lhs preceeds rhs.
- bool operator() (T* lhs_t, T* rhs_t) {
- return CompareStringWithCollator(collator_, (lhs_t->*method_)(),
- (rhs_t->*method_)()) == UCOL_LESS;
- }
-
- private:
- Collator* collator_;
- Method method_;
-};
-
-// Used by SortStringsUsingMethod. Invokes a method on the objects passed to
-// operator (), comparing the string results using <.
-template <class T, class Method>
-class StringMethodComparator : public std::binary_function<const std::wstring&,
- const std::wstring&,
- bool> {
- public:
- explicit StringMethodComparator(Method method) : method_(method) { }
-
- // Returns true if lhs preceeds rhs.
- bool operator() (T* lhs_t, T* rhs_t) {
- return (lhs_t->*method_)() < (rhs_t->*method_)();
- }
-
- private:
- Method method_;
-};
-
-// Sorts the objects in |elements| using the method |method|, which must return
-// a string. Sorting is done using a collator, unless a collator can not be
-// found in which case the strings are sorted using the operator <.
-template <class T, class Method>
-void SortStringsUsingMethod(const std::wstring& locale,
- std::vector<T*>* elements,
- Method method) {
- UErrorCode error = U_ZERO_ERROR;
- Locale loc(WideToUTF8(locale).c_str());
- scoped_ptr<Collator> collator(Collator::createInstance(loc, error));
- if (U_FAILURE(error)) {
- sort(elements->begin(), elements->end(),
- StringMethodComparator<T,Method>(method));
- return;
- }
-
- std::sort(elements->begin(), elements->end(),
- StringMethodComparatorWithCollator<T,Method>(collator.get(), method));
-}
-
-// Compares two elements' string keys and returns true if the first element's
-// string key is less than the second element's string key. The Element must
-// have a method like the follow format to return the string key.
-// const std::wstring& GetStringKey() const;
-// This uses the locale specified in the constructor.
-template <class Element>
-class StringComparator : public std::binary_function<const Element&,
- const Element&,
- bool> {
- public:
- explicit StringComparator(Collator* collator)
- : collator_(collator) { }
-
- // Returns true if lhs precedes rhs.
- bool operator()(const Element& lhs, const Element& rhs) {
- const std::wstring& lhs_string_key = lhs.GetStringKey();
- const std::wstring& rhs_string_key = rhs.GetStringKey();
-
- return StringComparator<std::wstring>(collator_)(lhs_string_key,
- rhs_string_key);
- }
-
- private:
- Collator* collator_;
-};
-
-// Specialization of operator() method for std::wstring version.
-template <>
-bool StringComparator<std::wstring>::operator()(const std::wstring& lhs,
- const std::wstring& rhs);
-
-// In place sorting of |elements| of a vector according to the string key of
-// each element in the vector by using collation rules for |locale|.
-// |begin_index| points to the start position of elements in the vector which
-// want to be sorted. |end_index| points to the end position of elements in the
-// vector which want to be sorted
-template <class Element>
-void SortVectorWithStringKey(const std::wstring& locale,
- std::vector<Element>* elements,
- unsigned int begin_index,
- unsigned int end_index,
- bool needs_stable_sort) {
- DCHECK(begin_index >= 0 && begin_index < end_index &&
- end_index <= static_cast<unsigned int>(elements->size()));
- UErrorCode error = U_ZERO_ERROR;
- Locale loc(WideToASCII(locale).c_str());
- scoped_ptr<Collator> collator(Collator::createInstance(loc, error));
- if (U_FAILURE(error))
- collator.reset();
- StringComparator<Element> c(collator.get());
- if (needs_stable_sort) {
- stable_sort(elements->begin() + begin_index,
- elements->begin() + end_index,
- c);
- } else {
- sort(elements->begin() + begin_index, elements->begin() + end_index, c);
- }
-}
-
-template <class Element>
-void SortVectorWithStringKey(const std::wstring& locale,
- std::vector<Element>* elements,
- bool needs_stable_sort) {
- SortVectorWithStringKey<Element>(locale, elements, 0, elements->size(),
- needs_stable_sort);
-}
-
-// In place sorting of strings using collation rules for |locale|.
-// TODO(port): this should take string16.
-void SortStrings(const std::wstring& locale,
- std::vector<std::wstring>* strings);
-
-// Returns a vector of available locale codes. E.g., a vector containing
-// en-US, es, fr, fi, pt-PT, pt-BR, etc.
-const std::vector<std::string>& GetAvailableLocales();
-
-// A simple wrapper class for the bidirectional iterator of ICU.
-// This class uses the bidirectional iterator of ICU to split a line of
-// bidirectional texts into visual runs in its display order.
-class BiDiLineIterator {
- public:
- BiDiLineIterator() : bidi_(NULL) { }
- ~BiDiLineIterator();
-
- // Initializes the bidirectional iterator with the specified text. Returns
- // whether initialization succeeded.
- UBool Open(const std::wstring& text, bool right_to_left, bool url);
-
- // Returns the number of visual runs in the text, or zero on error.
- int CountRuns();
-
- // Gets the logical offset, length, and direction of the specified visual run.
- UBiDiDirection GetVisualRun(int index, int* start, int* length);
-
- // Given a start position, figure out where the run ends (and the BiDiLevel).
- void GetLogicalRun(int start, int* end, UBiDiLevel* level);
-
- private:
- UBiDi* bidi_;
-
- DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator);
-};
-
-}
-
-#endif // CHROME_COMMON_L10N_UTIL_H_
diff --git a/chrome/common/l10n_util_posix.cc b/chrome/common/l10n_util_posix.cc
deleted file mode 100644
index a0c8ae1..0000000
--- a/chrome/common/l10n_util_posix.cc
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright (c) 2009 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.
-
-#include "chrome/common/l10n_util.h"
-
-namespace l10n_util {
-
-// Return true blindly for now.
-bool IsLocaleSupportedByOS(const std::wstring& locale) {
- return true;
-}
-
-} // namespace l10n_util
diff --git a/chrome/common/l10n_util_unittest.cc b/chrome/common/l10n_util_unittest.cc
deleted file mode 100644
index 5fbff86..0000000
--- a/chrome/common/l10n_util_unittest.cc
+++ /dev/null
@@ -1,435 +0,0 @@
-// Copyright (c) 2006-2008 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.
-
-#include "build/build_config.h"
-
-#include "base/basictypes.h"
-#include "base/file_util.h"
-#include "base/path_service.h"
-#include "base/stl_util-inl.h"
-#include "base/string_util.h"
-#if defined(OS_WIN)
-#include "base/win_util.h"
-#endif
-#include "chrome/common/chrome_paths.h"
-#include "chrome/common/l10n_util.h"
-#if !defined(OS_MACOSX)
-#include "chrome/test/data/resource.h"
-#endif
-#include "testing/gtest/include/gtest/gtest.h"
-#include "testing/platform_test.h"
-#include "unicode/locid.h"
-
-namespace {
-
-class StringWrapper {
- public:
- explicit StringWrapper(const std::wstring& string) : string_(string) {}
- const std::wstring& string() const { return string_; }
-
- private:
- std::wstring string_;
-
- DISALLOW_COPY_AND_ASSIGN(StringWrapper);
-};
-
-l10n_util::TextDirection GetTextDirection(const char* locale_name) {
- return l10n_util::GetTextDirectionForLocale(locale_name);
-}
-
-} // namespace
-
-class L10nUtilTest : public PlatformTest {
-};
-
-#if defined(OS_WIN)
-TEST_F(L10nUtilTest, GetString) {
- std::wstring s = l10n_util::GetString(IDS_SIMPLE);
- EXPECT_EQ(std::wstring(L"Hello World!"), s);
-
- s = l10n_util::GetStringF(IDS_PLACEHOLDERS, L"chrome", L"10");
- EXPECT_EQ(std::wstring(L"Hello, chrome. Your number is 10."), s);
-
- s = l10n_util::GetStringF(IDS_PLACEHOLDERS_2, 20);
- EXPECT_EQ(std::wstring(L"You owe me $20."), s);
-}
-#endif // defined(OS_WIN)
-
-TEST_F(L10nUtilTest, TruncateString) {
- std::wstring string(L"foooooey bxxxar baz");
-
- // Make sure it doesn't modify the string if length > string length.
- EXPECT_EQ(string, l10n_util::TruncateString(string, 100));
-
- // Test no characters.
- EXPECT_EQ(L"", l10n_util::TruncateString(string, 0));
-
- // Test 1 character.
- EXPECT_EQ(L"\x2026", l10n_util::TruncateString(string, 1));
-
- // Test adds ... at right spot when there is enough room to break at a
- // word boundary.
- EXPECT_EQ(L"foooooey\x2026", l10n_util::TruncateString(string, 14));
-
- // Test adds ... at right spot when there is not enough space in first word.
- EXPECT_EQ(L"f\x2026", l10n_util::TruncateString(string, 2));
-
- // Test adds ... at right spot when there is not enough room to break at a
- // word boundary.
- EXPECT_EQ(L"foooooey\x2026", l10n_util::TruncateString(string, 11));
-
- // Test completely truncates string if break is on initial whitespace.
- EXPECT_EQ(L"\x2026", l10n_util::TruncateString(L" ", 2));
-}
-
-void SetICUDefaultLocale(const std::wstring& locale_string) {
- Locale locale(WideToASCII(locale_string).c_str());
- UErrorCode error_code = U_ZERO_ERROR;
- Locale::setDefault(locale, error_code);
- EXPECT_TRUE(U_SUCCESS(error_code));
-}
-
-#if defined(OS_WIN) || defined(OS_LINUX)
-// We are disabling this test on MacOS because GetApplicationLocale() as an
-// API isn't something that we'll easily be able to unit test in this manner.
-// The meaning of that API, on the Mac, is "the locale used by Cocoa's main
-// nib file", which clearly can't be stubbed by a test app that doesn't use
-// Cocoa.
-TEST_F(L10nUtilTest, GetAppLocale) {
- // Use a temporary locale dir so we don't have to actually build the locale
- // dlls for this test.
- FilePath orig_locale_dir;
- PathService::Get(chrome::DIR_LOCALES, &orig_locale_dir);
- FilePath new_locale_dir;
- EXPECT_TRUE(file_util::CreateNewTempDirectory(
- FILE_PATH_LITERAL("l10n_util_test"),
- &new_locale_dir));
- PathService::Override(chrome::DIR_LOCALES, new_locale_dir.ToWStringHack());
- // Make fake locale files.
- std::string filenames[] = {
- "en-US",
- "en-GB",
- "fr",
- "es-419",
- "es",
- "zh-TW",
- "zh-CN",
- "he",
- "fil",
- "nb",
- "or",
- };
-
-#if defined(OS_WIN)
- static const char kLocaleFileExtension[] = ".dll";
-#elif defined(OS_POSIX)
- static const char kLocaleFileExtension[] = ".pak";
-#endif
- for (size_t i = 0; i < arraysize(filenames); ++i) {
- FilePath filename = new_locale_dir.AppendASCII(
- filenames[i] + kLocaleFileExtension);
- file_util::WriteFile(filename, "", 0);
- }
-
- // Keep a copy of ICU's default locale before we overwrite it.
- Locale locale = Locale::getDefault();
-
- SetICUDefaultLocale(L"en-US");
- EXPECT_EQ(L"en-US", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"en-GB");
- EXPECT_EQ(L"en-GB", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"fr-CA");
- EXPECT_EQ(L"fr", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"xx");
- EXPECT_EQ(L"en-US", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"en-US");
- EXPECT_EQ(L"fr", l10n_util::GetApplicationLocale(L"fr"));
- EXPECT_EQ(L"fr", l10n_util::GetApplicationLocale(L"fr-CA"));
-
- SetICUDefaultLocale(L"en-US");
- // Aliases iw, no, tl to he, nb, fil.
- EXPECT_EQ(L"he", l10n_util::GetApplicationLocale(L"iw"));
- EXPECT_EQ(L"nb", l10n_util::GetApplicationLocale(L"no"));
- EXPECT_EQ(L"fil", l10n_util::GetApplicationLocale(L"tl"));
- // es-419 and es-XX (where XX is not Spain) should be
- // mapped to es-419 (Latin American Spanish).
- EXPECT_EQ(L"es-419", l10n_util::GetApplicationLocale(L"es-419"));
- EXPECT_EQ(L"es", l10n_util::GetApplicationLocale(L"es-ES"));
- EXPECT_EQ(L"es-419", l10n_util::GetApplicationLocale(L"es-AR"));
-
- SetICUDefaultLocale(L"es-MX");
- EXPECT_EQ(L"es-419", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"es-AR");
- EXPECT_EQ(L"es-419", l10n_util::GetApplicationLocale(L""));
- EXPECT_EQ(L"es", l10n_util::GetApplicationLocale(L"es"));
-
- SetICUDefaultLocale(L"es-ES");
- EXPECT_EQ(L"es", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"es");
- EXPECT_EQ(L"es", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"zh-HK");
- EXPECT_EQ(L"zh-TW", l10n_util::GetApplicationLocale(L""));
- EXPECT_EQ(L"zh-CN", l10n_util::GetApplicationLocale(L"zh-CN"));
-
- SetICUDefaultLocale(L"zh-MK");
- EXPECT_EQ(L"zh-TW", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"zh-SG");
- EXPECT_EQ(L"zh-CN", l10n_util::GetApplicationLocale(L""));
-
- SetICUDefaultLocale(L"he");
- EXPECT_EQ(L"en-US", l10n_util::GetApplicationLocale(L"en"));
-
-#if defined(OS_WIN)
- // Oriya should be blocked unless OS is Vista or newer.
- if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) {
- SetICUDefaultLocale(L"or");
- EXPECT_EQ(L"en-US", l10n_util::GetApplicationLocale(L""));
- SetICUDefaultLocale(L"en-GB");
- EXPECT_EQ(L"en-GB", l10n_util::GetApplicationLocale(L"or"));
- } else {
- SetICUDefaultLocale(L"or");
- EXPECT_EQ(L"or", l10n_util::GetApplicationLocale(L""));
- SetICUDefaultLocale(L"en-GB");
- EXPECT_EQ(L"or", l10n_util::GetApplicationLocale(L"or"));
- }
-#endif
-
- // Clean up.
- PathService::Override(chrome::DIR_LOCALES, orig_locale_dir.ToWStringHack());
- file_util::Delete(new_locale_dir, true);
- UErrorCode error_code = U_ZERO_ERROR;
- Locale::setDefault(locale, error_code);
-}
-#endif
-
-TEST_F(L10nUtilTest, SortStringsUsingFunction) {
- std::vector<StringWrapper*> strings;
- strings.push_back(new StringWrapper(L"C"));
- strings.push_back(new StringWrapper(L"d"));
- strings.push_back(new StringWrapper(L"b"));
- strings.push_back(new StringWrapper(L"a"));
- l10n_util::SortStringsUsingMethod(L"en-US", &strings, &StringWrapper::string);
- ASSERT_TRUE(L"a" == strings[0]->string());
- ASSERT_TRUE(L"b" == strings[1]->string());
- ASSERT_TRUE(L"C" == strings[2]->string());
- ASSERT_TRUE(L"d" == strings[3]->string());
- STLDeleteElements(&strings);
-}
-
-TEST_F(L10nUtilTest, GetFirstStrongCharacterDirection) {
- // Test pure LTR string.
- std::wstring string(L"foo bar");
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string in which the first character with strong directionality
- // is a character with type L.
- string.assign(L"foo \x05d0 bar");
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string in which the first character with strong directionality
- // is a character with type R.
- string.assign(L"\x05d0 foo bar");
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string which starts with a character with weak directionality
- // and in which the first character with strong directionality is a character
- // with type L.
- string.assign(L"!foo \x05d0 bar");
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string which starts with a character with weak directionality
- // and in which the first character with strong directionality is a character
- // with type R.
- string.assign(L",\x05d0 foo bar");
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string in which the first character with strong directionality
- // is a character with type LRE.
- string.assign(L"\x202a \x05d0 foo bar");
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string in which the first character with strong directionality
- // is a character with type LRO.
- string.assign(L"\x202d \x05d0 foo bar");
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string in which the first character with strong directionality
- // is a character with type RLE.
- string.assign(L"\x202b foo \x05d0 bar");
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string in which the first character with strong directionality
- // is a character with type RLO.
- string.assign(L"\x202e foo \x05d0 bar");
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test bidi string in which the first character with strong directionality
- // is a character with type AL.
- string.assign(L"\x0622 foo \x05d0 bar");
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test a string without strong directionality characters.
- string.assign(L",!.{}");
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test empty string.
- string.assign(L"");
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
- // Test characters in non-BMP (e.g. Phoenician letters. Please refer to
- // http://demo.icu-project.org/icu-bin/ubrowse?scr=151&b=10910 for more
- // information).
-#if defined(WCHAR_T_IS_UTF32)
- string.assign(L" ! \x10910" L"abc 123");
-#elif defined(WCHAR_T_IS_UTF16)
- string.assign(L" ! \xd802\xdd10" L"abc 123");
-#else
-#error wchar_t should be either UTF-16 or UTF-32
-#endif
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-
-#if defined(WCHAR_T_IS_UTF32)
- string.assign(L" ! \x10401" L"abc 123");
-#elif defined(WCHAR_T_IS_UTF16)
- string.assign(L" ! \xd801\xdc01" L"abc 123");
-#else
-#error wchar_t should be either UTF-16 or UTF-32
-#endif
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT,
- l10n_util::GetFirstStrongCharacterDirection(string));
-}
-
-typedef struct {
- std::wstring path;
- std::wstring wrapped_path;
-} PathAndWrappedPath;
-
-TEST_F(L10nUtilTest, WrapPathWithLTRFormatting) {
- std::wstring kSeparator;
- kSeparator.push_back(static_cast<wchar_t>(FilePath::kSeparators[0]));
- const PathAndWrappedPath test_data[] = {
- // Test common path, such as "c:\foo\bar".
- { L"c:" + kSeparator + L"foo" + kSeparator + L"bar",
- L"\x202a"L"c:" + kSeparator + L"foo" + kSeparator +
- L"bar\x202c"
- },
- // Test path with file name, such as "c:\foo\bar\test.jpg".
- { L"c:" + kSeparator + L"foo" + kSeparator + L"bar" + kSeparator +
- L"test.jpg",
- L"\x202a"L"c:" + kSeparator + L"foo" + kSeparator +
- L"bar" + kSeparator + L"test.jpg\x202c"
- },
- // Test path ending with punctuation, such as "c:\(foo)\bar.".
- { L"c:" + kSeparator + L"(foo)" + kSeparator + L"bar.",
- L"\x202a"L"c:" + kSeparator + L"(foo)" + kSeparator +
- L"bar.\x202c"
- },
- // Test path ending with separator, such as "c:\foo\bar\".
- { L"c:" + kSeparator + L"foo" + kSeparator + L"bar" + kSeparator,
- L"\x202a"L"c:" + kSeparator + L"foo" + kSeparator +
- L"bar" + kSeparator + L"\x202c",
- },
- // Test path with RTL character.
- { L"c:" + kSeparator + L"\x05d0",
- L"\x202a"L"c:" + kSeparator + L"\x05d0\x202c",
- },
- // Test path with 2 level RTL directory names.
- { L"c:" + kSeparator + L"\x05d0" + kSeparator + L"\x0622",
- L"\x202a"L"c:" + kSeparator + L"\x05d0" + kSeparator +
- L"\x0622\x202c",
- },
- // Test path with mixed RTL/LTR directory names and ending with punctuation.
- { L"c:" + kSeparator + L"\x05d0" + kSeparator + L"\x0622" + kSeparator +
- L"(foo)" + kSeparator + L"b.a.r.",
- L"\x202a"L"c:" + kSeparator + L"\x05d0" + kSeparator +
- L"\x0622" + kSeparator + L"(foo)" + kSeparator +
- L"b.a.r.\x202c",
- },
- // Test path without driver name, such as "/foo/bar/test/jpg".
- { kSeparator + L"foo" + kSeparator + L"bar" + kSeparator + L"test.jpg",
- L"\x202a" + kSeparator + L"foo" + kSeparator + L"bar" +
- kSeparator + L"test.jpg" + L"\x202c"
- },
- // Test path start with current directory, such as "./foo".
- { L"." + kSeparator + L"foo",
- L"\x202a"L"." + kSeparator + L"foo" + L"\x202c"
- },
- // Test path start with parent directory, such as "../foo/bar.jpg".
- { L".." + kSeparator + L"foo" + kSeparator + L"bar.jpg",
- L"\x202a"L".." + kSeparator + L"foo" + kSeparator +
- L"bar.jpg" + L"\x202c"
- },
- // Test absolute path, such as "//foo/bar.jpg".
- { kSeparator + kSeparator + L"foo" + kSeparator + L"bar.jpg",
- L"\x202a" + kSeparator + kSeparator + L"foo" + kSeparator +
- L"bar.jpg" + L"\x202c"
- },
- // Test path with mixed RTL/LTR directory names.
- { L"c:" + kSeparator + L"foo" + kSeparator + L"\x05d0" + kSeparator +
- L"\x0622" + kSeparator + L"\x05d1.jpg",
- L"\x202a"L"c:" + kSeparator + L"foo" + kSeparator + L"\x05d0" +
- kSeparator + L"\x0622" + kSeparator + L"\x05d1.jpg" + L"\x202c",
- },
- // Test empty path.
- { L"",
- L"\x202a\x202c"
- }
- };
- for (unsigned int i = 0; i < arraysize(test_data); ++i) {
- string16 localized_file_path_string;
- FilePath path = FilePath::FromWStringHack(test_data[i].path);
- l10n_util::WrapPathWithLTRFormatting(path, &localized_file_path_string);
- std::wstring wrapped_path = UTF16ToWide(localized_file_path_string);
- EXPECT_EQ(wrapped_path, test_data[i].wrapped_path);
- }
-}
-
-TEST_F(L10nUtilTest, GetTextDirection) {
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("ar"));
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("ar_EG"));
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("he"));
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("he_IL"));
- // iw is an obsolete code for Hebrew.
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("iw"));
-#if 0
- // Enable these when we localize to Farsi, Urdu, Azerbaijani
- // written in Arabic and Dhivehi. At the moment, our copy of
- // ICU data does not have entry for them.
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("fa"));
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("ur"));
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("az_Arab"));
- // Dhivehi that uses Thaana script.
- EXPECT_EQ(l10n_util::RIGHT_TO_LEFT, GetTextDirection("dv"));
-#endif
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("en"));
- // Chinese in China with '-'.
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("zh-CN"));
- // Filipino : 3-letter code
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("fil"));
- // Russian
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("ru"));
- // Japanese that uses multiple scripts
- EXPECT_EQ(l10n_util::LEFT_TO_RIGHT, GetTextDirection("ja"));
-}
diff --git a/chrome/common/l10n_util_win.cc b/chrome/common/l10n_util_win.cc
deleted file mode 100644
index e17a78b..0000000
--- a/chrome/common/l10n_util_win.cc
+++ /dev/null
@@ -1,120 +0,0 @@
-// Copyright (c) 2009 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.
-
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
-
-#include <algorithm>
-#include <windowsx.h>
-
-#include "base/string_util.h"
-#include "base/win_util.h"
-
-#include "grit/locale_settings.h"
-
-namespace {
-
-void AdjustLogFont(const std::wstring& font_family,
- double font_size_scaler,
- LOGFONT* logfont) {
- DCHECK(font_size_scaler > 0);
- font_size_scaler = std::max(std::min(font_size_scaler, 2.0), 0.7);
- logfont->lfHeight = static_cast<long>(font_size_scaler *
- static_cast<double>(abs(logfont->lfHeight)) + 0.5) *
- (logfont->lfHeight > 0 ? 1 : -1);
-
- // TODO(jungshik): We may want to check the existence of the font.
- // If it's not installed, we shouldn't adjust the font.
- if (font_family != L"default") {
- int name_len = std::min(static_cast<int>(font_family.size()),
- LF_FACESIZE -1);
- memcpy(logfont->lfFaceName, font_family.data(), name_len * sizeof(WORD));
- logfont->lfFaceName[name_len] = 0;
- }
-}
-
-} // namespace
-
-namespace l10n_util {
-
-int GetExtendedStyles() {
- return GetTextDirection() == LEFT_TO_RIGHT ? 0 :
- WS_EX_LAYOUTRTL | WS_EX_RTLREADING;
-}
-
-int GetExtendedTooltipStyles() {
- return GetTextDirection() == LEFT_TO_RIGHT ? 0 : WS_EX_LAYOUTRTL;
-}
-
-void HWNDSetRTLLayout(HWND hwnd) {
- DWORD ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE);
-
- // We don't have to do anything if the style is already set for the HWND.
- if (!(ex_style & WS_EX_LAYOUTRTL)) {
- ex_style |= WS_EX_LAYOUTRTL;
- ::SetWindowLong(hwnd, GWL_EXSTYLE, ex_style);
-
- // Right-to-left layout changes are not applied to the window immediately
- // so we should make sure a WM_PAINT is sent to the window by invalidating
- // the entire window rect.
- ::InvalidateRect(hwnd, NULL, true);
- }
-}
-
-bool IsLocaleSupportedByOS(const std::wstring& locale) {
- // Block Oriya on Windows XP.
- return !(LowerCaseEqualsASCII(locale, "or") &&
- win_util::GetWinVersion() < win_util::WINVERSION_VISTA);
-}
-
-bool NeedOverrideDefaultUIFont(std::wstring* override_font_family,
- double* font_size_scaler) {
- // This is rather simple-minded to deal with the UI font size
- // issue for some Indian locales (ml, bn, hi) for which
- // the default Windows fonts are too small to be legible. For those
- // locales, IDS_UI_FONT_FAMILY is set to an actual font family to
- // use while for other locales, it's set to 'default'.
-
- // XP and Vista or later have different font size issues and
- // we need separate ui font specifications.
- int ui_font_family_id = IDS_UI_FONT_FAMILY;
- int ui_font_size_scaler_id = IDS_UI_FONT_SIZE_SCALER;
- if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) {
- ui_font_family_id = IDS_UI_FONT_FAMILY_XP;
- ui_font_size_scaler_id = IDS_UI_FONT_SIZE_SCALER_XP;
- }
-
- std::wstring ui_font_family = GetString(ui_font_family_id);
- int scaler100 = StringToInt(l10n_util::GetString(ui_font_size_scaler_id));
- if (ui_font_family == L"default" && scaler100 == 100)
- return false;
- if (override_font_family && font_size_scaler) {
- override_font_family->swap(ui_font_family);
- *font_size_scaler = scaler100 / 100.0;
- }
- return true;
-}
-
-void AdjustUIFont(LOGFONT* logfont) {
- std::wstring ui_font_family;
- double ui_font_size_scaler;
- if (NeedOverrideDefaultUIFont(&ui_font_family, &ui_font_size_scaler))
- AdjustLogFont(ui_font_family, ui_font_size_scaler, logfont);
-}
-
-void AdjustUIFontForWindow(HWND hwnd) {
- std::wstring ui_font_family;
- double ui_font_size_scaler;
- if (NeedOverrideDefaultUIFont(&ui_font_family, &ui_font_size_scaler)) {
- LOGFONT logfont;
- if (GetObject(GetWindowFont(hwnd), sizeof(logfont), &logfont)) {
- AdjustLogFont(ui_font_family, ui_font_size_scaler, &logfont);
- HFONT hfont = CreateFontIndirect(&logfont);
- if (hfont)
- SetWindowFont(hwnd, hfont, FALSE);
- }
- }
-}
-
-} // namespace l10n_util
diff --git a/chrome/common/l10n_util_win.h b/chrome/common/l10n_util_win.h
deleted file mode 100644
index acfb209..0000000
--- a/chrome/common/l10n_util_win.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2009 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.
-
-#ifndef CHROME_COMMON_L10N_UTIL_WIN_H_
-#define CHROME_COMMON_L10N_UTIL_WIN_H_
-
-#include <windows.h>
-
-namespace l10n_util {
-
-// Returns the locale-dependent extended window styles.
-// This function is used for adding locale-dependent extended window styles
-// (e.g. WS_EX_LAYOUTRTL, WS_EX_RTLREADING, etc.) when creating a window.
-// Callers should OR this value into their extended style value when creating
-// a window.
-int GetExtendedStyles();
-
-// TODO(xji):
-// This is a temporary name, it will eventually replace GetExtendedStyles
-int GetExtendedTooltipStyles();
-
-// Give an HWND, this function sets the WS_EX_LAYOUTRTL extended style for the
-// underlying window. When this style is set, the UI for the window is going to
-// be mirrored. This is generally done for the UI of right-to-left languages
-// such as Hebrew.
-void HWNDSetRTLLayout(HWND hwnd);
-
-// See http://blogs.msdn.com/oldnewthing/archive/2005/09/15/467598.aspx
-// and http://blogs.msdn.com/oldnewthing/archive/2006/06/26/647365.aspx
-// as to why we need these three functions.
-
-// Return true if the default font (we get from Windows) is not suitable
-// to use in the UI of the current UI (e.g. Malayalam, Bengali). If
-// override_font_family and font_size_scaler are not null, they'll be
-// filled with the font family name and the size scaler.
-bool NeedOverrideDefaultUIFont(std::wstring* override_font_family,
- double* font_size_scaler);
-
-// If the default UI font stored in |logfont| is not suitable, its family
-// and size are replaced with those stored in the per-locale resource.
-void AdjustUIFont(LOGFONT* logfont);
-
-// If the font for a given window (pointed to by HWND) is not suitable for the
-// UI in the current UI langauge, its family and size are replaced with those
-// stored in the per-locale resource.
-void AdjustUIFontForWindow(HWND hwnd);
-
-} // namespace l10n_util
-
-#endif // CHROME_COMMON_L10N_UTIL_WIN_H_
diff --git a/chrome/common/os_exchange_data.cc b/chrome/common/os_exchange_data.cc
index 114c480..969724f 100644
--- a/chrome/common/os_exchange_data.cc
+++ b/chrome/common/os_exchange_data.cc
@@ -6,6 +6,7 @@
#include "chrome/common/os_exchange_data.h"
+#include "app/l10n_util.h"
#include "base/clipboard_util.h"
#include "base/file_util.h"
#include "base/logging.h"
@@ -13,7 +14,6 @@
#include "base/scoped_handle.h"
#include "base/stl_util-inl.h"
#include "base/string_util.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "googleurl/src/gurl.h"
#include "grit/generated_resources.h"
diff --git a/chrome/common/platform_util_mac.mm b/chrome/common/platform_util_mac.mm
index b5c685b..a75ea4b 100644
--- a/chrome/common/platform_util_mac.mm
+++ b/chrome/common/platform_util_mac.mm
@@ -6,11 +6,11 @@
#import <Cocoa/Cocoa.h>
+#include "app/l10n_util.h"
#include "base/file_path.h"
#include "base/logging.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/cocoa/tab_window_controller.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
namespace platform_util {
diff --git a/chrome/common/pref_service.cc b/chrome/common/pref_service.cc
index 7ea11ee..85abb4f 100644
--- a/chrome/common/pref_service.cc
+++ b/chrome/common/pref_service.cc
@@ -4,13 +4,13 @@
#include "chrome/common/pref_service.h"
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/stl_util-inl.h"
#include "base/string_util.h"
#include "base/thread.h"
#include "chrome/common/json_value_serializer.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "grit/generated_resources.h"
diff --git a/chrome/common/security_filter_peer.cc b/chrome/common/security_filter_peer.cc
index 67ed158..3b1c9f0 100644
--- a/chrome/common/security_filter_peer.cc
+++ b/chrome/common/security_filter_peer.cc
@@ -4,11 +4,11 @@
#include "chrome/common/security_filter_peer.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/png_encoder.h"
#include "base/gfx/size.h"
#include "base/string_util.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "grit/renderer_resources.h"
#include "net/base/net_errors.h"
diff --git a/chrome/common/time_format.cc b/chrome/common/time_format.cc
index 6d0b7d1..c4bd179 100644
--- a/chrome/common/time_format.cc
+++ b/chrome/common/time_format.cc
@@ -6,6 +6,7 @@
#include <vector>
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/singleton.h"
@@ -13,7 +14,6 @@
#include "base/string_util.h"
#include "base/time.h"
#include "base/time_format.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
#include "unicode/datefmt.h"
#include "unicode/locid.h"
diff --git a/chrome/common/time_format_unittest.cc b/chrome/common/time_format_unittest.cc
index c910209..d437859 100644
--- a/chrome/common/time_format_unittest.cc
+++ b/chrome/common/time_format_unittest.cc
@@ -4,9 +4,9 @@
#include <time.h>
+#include "app/l10n_util.h"
#include "base/basictypes.h"
#include "base/time.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/time_format.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/common/win_util.cc b/chrome/common/win_util.cc
index fa3ce49..95fc132 100644
--- a/chrome/common/win_util.cc
+++ b/chrome/common/win_util.cc
@@ -11,6 +11,8 @@
#include <shellapi.h>
#include <shlobj.h>
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "base/file_util.h"
#include "base/gfx/gdi_util.h"
#include "base/gfx/png_encoder.h"
@@ -19,8 +21,6 @@
#include "base/scoped_handle.h"
#include "base/string_util.h"
#include "base/win_util.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "grit/generated_resources.h"
#include "net/base/mime_util.h"
diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc
index af89563..a310d60 100644
--- a/chrome/renderer/localized_error.cc
+++ b/chrome/renderer/localized_error.cc
@@ -4,10 +4,10 @@
#include "chrome/renderer/localized_error.h"
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "base/values.h"
-#include "chrome/common/l10n_util.h"
#include "googleurl/src/gurl.h"
#include "grit/generated_resources.h"
#include "net/base/escape.h"
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index e0b661e..c5407d5 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
@@ -21,7 +22,6 @@
#include "chrome/common/gfx/favicon_size.h"
#include "chrome/common/gfx/color_utils.h"
#include "chrome/common/jstemplate_builder.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/common/page_zoom.h"
#include "chrome/common/render_messages.h"
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc
index 33e1742..74b5334 100644
--- a/chrome/renderer/renderer_main.cc
+++ b/chrome/renderer/renderer_main.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/command_line.h"
#include "base/histogram.h"
@@ -16,7 +17,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_counters.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/main_function_params.h"
#include "chrome/renderer/renderer_main_platform_delegate.h"
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index 2570390..e911b09 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -10,6 +10,7 @@
#include <atlbase.h>
#endif
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/logging.h"
#include "base/ref_counted.h"
@@ -18,7 +19,6 @@
#include "base/gfx/native_widget_types.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/plugin_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/plugin/npobject_proxy.h"
diff --git a/chrome/test/accessibility/accessibility_tests.cc b/chrome/test/accessibility/accessibility_tests.cc
index 107b346..7393f85 100644
--- a/chrome/test/accessibility/accessibility_tests.cc
+++ b/chrome/test/accessibility/accessibility_tests.cc
@@ -4,10 +4,10 @@
#include <oleacc.h>
+#include "app/l10n_util.h"
#include "base/file_path.h"
#include "base/win_util.h"
#include "chrome/app/chrome_dll_resource.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/test/accessibility/accessibility_util.h"
#include "chrome/test/ui/ui_test.h"
#include "chrome/test/automation/browser_proxy.h"
diff --git a/chrome/test/accessibility/accessibility_util.cc b/chrome/test/accessibility/accessibility_util.cc
index eb18a1a..0861cc2 100644
--- a/chrome/test/accessibility/accessibility_util.cc
+++ b/chrome/test/accessibility/accessibility_util.cc
@@ -4,9 +4,9 @@
#include "chrome/test/accessibility/accessibility_util.h"
+#include "app/l10n_util.h"
#include "base/win_util.h"
#include "chrome/browser/view_ids.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/test/accessibility/constants.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
diff --git a/chrome/test/unit/unittests.vcproj b/chrome/test/unit/unittests.vcproj
index 5eb02d9..9f84d5e 100644
--- a/chrome/test/unit/unittests.vcproj
+++ b/chrome/test/unit/unittests.vcproj
@@ -988,10 +988,6 @@
>
</File>
<File
- RelativePath="..\..\common\l10n_util_unittest.cc"
- >
- </File>
- <File
RelativePath="..\..\common\mru_cache_unittest.cc"
>
</File>
@@ -1099,6 +1095,10 @@
RelativePath="..\..\..\app\animation_unittest.cc"
>
</File>
+ <File
+ RelativePath="..\..\..\app\l10n_util_unittest.cc"
+ >
+ </File>
</Filter>
</Files>
<Globals>
diff --git a/chrome/views/accelerator.cc b/chrome/views/accelerator.cc
index 9bbda74..b1c6191 100644
--- a/chrome/views/accelerator.cc
+++ b/chrome/views/accelerator.cc
@@ -6,9 +6,9 @@
#include <windows.h>
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/string_util.h"
-#include "chrome/common/l10n_util.h"
#include "grit/generated_resources.h"
namespace views {
diff --git a/chrome/views/controls/button/button_dropdown.cc b/chrome/views/controls/button/button_dropdown.cc
index 89abf85..5598a18 100644
--- a/chrome/views/controls/button/button_dropdown.cc
+++ b/chrome/views/controls/button/button_dropdown.cc
@@ -4,8 +4,8 @@
#include "chrome/views/controls/button/button_dropdown.h"
+#include "app/l10n_util.h"
#include "base/message_loop.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/menu/view_menu_delegate.h"
#include "chrome/views/widget/widget.h"
#include "grit/generated_resources.h"
diff --git a/chrome/views/controls/button/menu_button.cc b/chrome/views/controls/button/menu_button.cc
index 9f0ec74..a4ad6aa 100644
--- a/chrome/views/controls/button/menu_button.cc
+++ b/chrome/views/controls/button/menu_button.cc
@@ -4,10 +4,10 @@
#include "chrome/views/controls/button/menu_button.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/common/drag_drop_types.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "chrome/views/controls/button/button.h"
#include "chrome/views/controls/menu/view_menu_delegate.h"
diff --git a/chrome/views/controls/button/native_button.cc b/chrome/views/controls/button/native_button.cc
index e5c1850..511f45b 100644
--- a/chrome/views/controls/button/native_button.cc
+++ b/chrome/views/controls/button/native_button.cc
@@ -4,8 +4,8 @@
#include "chrome/views/controls/button/native_button.h"
+#include "app/l10n_util.h"
#include "base/logging.h"
-#include "chrome/common/l10n_util.h"
namespace views {
diff --git a/chrome/views/controls/button/text_button.cc b/chrome/views/controls/button/text_button.cc
index b821db9..add909b 100644
--- a/chrome/views/controls/button/text_button.cc
+++ b/chrome/views/controls/button/text_button.cc
@@ -4,10 +4,10 @@
#include "chrome/views/controls/button/text_button.h"
+#include "app/l10n_util.h"
#include "app/throb_animation.h"
#include "app/resource_bundle.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/button/button.h"
#include "chrome/views/event.h"
#include "grit/theme_resources.h"
diff --git a/chrome/views/controls/combo_box.cc b/chrome/views/controls/combo_box.cc
index eaf8a07..375dd3a7 100644
--- a/chrome/views/controls/combo_box.cc
+++ b/chrome/views/controls/combo_box.cc
@@ -4,12 +4,12 @@
#include "chrome/views/controls/combo_box.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/native_theme.h"
#include "base/gfx/rect.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
// Limit how small a combobox can be.
static const int kMinComboboxWidth = 148;
diff --git a/chrome/views/controls/label.cc b/chrome/views/controls/label.cc
index b14527e..5ef0381 100644
--- a/chrome/views/controls/label.cc
+++ b/chrome/views/controls/label.cc
@@ -6,6 +6,7 @@
#include <math.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/logging.h"
#include "base/string_util.h"
@@ -13,7 +14,6 @@
#include "chrome/common/gfx/chrome_font.h"
#include "chrome/common/gfx/insets.h"
#include "chrome/common/gfx/text_elider.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/background.h"
namespace views {
diff --git a/chrome/views/controls/label_unittest.cc b/chrome/views/controls/label_unittest.cc
index fb1d057..b287c29 100644
--- a/chrome/views/controls/label_unittest.cc
+++ b/chrome/views/controls/label_unittest.cc
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "app/l10n_util.h"
#include "base/string_util.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/border.h"
#include "chrome/views/controls/label.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/views/controls/menu/chrome_menu.cc b/chrome/views/controls/menu/chrome_menu.cc
index cb94de3..ef398f4 100644
--- a/chrome/views/controls/menu/chrome_menu.cc
+++ b/chrome/views/controls/menu/chrome_menu.cc
@@ -8,6 +8,8 @@
#include <uxtheme.h>
#include <Vssym32.h>
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "base/base_drag_source.h"
#include "base/gfx/native_theme.h"
#include "base/message_loop.h"
@@ -18,8 +20,6 @@
#include "chrome/browser/drag_utils.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/color_utils.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/views/border.h"
#include "chrome/views/view_constants.h"
diff --git a/chrome/views/controls/menu/menu.cc b/chrome/views/controls/menu/menu.cc
index 050c3fa..e46eaa0 100644
--- a/chrome/views/controls/menu/menu.cc
+++ b/chrome/views/controls/menu/menu.cc
@@ -12,14 +12,14 @@
#include <atlmisc.h>
#include <string>
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "base/gfx/rect.h"
#include "base/logging.h"
#include "base/stl_util-inl.h"
#include "base/string_util.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/views/accelerator.h"
const SkBitmap* Menu::Delegate::kEmptyIcon = 0;
diff --git a/chrome/views/controls/message_box_view.cc b/chrome/views/controls/message_box_view.cc
index 33f6ce4..191b78c 100644
--- a/chrome/views/controls/message_box_view.cc
+++ b/chrome/views/controls/message_box_view.cc
@@ -4,13 +4,13 @@
#include "chrome/views/controls/message_box_view.h"
+#include "app/l10n_util.h"
#include "base/clipboard.h"
#include "base/message_loop.h"
#include "base/scoped_clipboard_writer.h"
#include "base/string_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/views/standard_layout.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/message_box_flags.h"
#include "chrome/views/controls/button/checkbox.h"
#include "chrome/views/window/client_view.h"
diff --git a/chrome/views/controls/native_control.cc b/chrome/views/controls/native_control.cc
index 5e07e41..84a3226 100644
--- a/chrome/views/controls/native_control.cc
+++ b/chrome/views/controls/native_control.cc
@@ -9,9 +9,9 @@
#include <atlcrack.h>
#include <atlframe.h>
+#include "app/l10n_util_win.h"
#include "base/logging.h"
#include "base/win_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/common/notification_service.h"
#include "chrome/views/background.h"
#include "chrome/views/border.h"
diff --git a/chrome/views/controls/native_control_win.cc b/chrome/views/controls/native_control_win.cc
index eb172e9..d493f66 100644
--- a/chrome/views/controls/native_control_win.cc
+++ b/chrome/views/controls/native_control_win.cc
@@ -4,9 +4,9 @@
#include "chrome/views/controls/native_control_win.h"
+#include "app/l10n_util_win.h"
#include "base/logging.h"
#include "base/win_util.h"
-#include "chrome/common/l10n_util_win.h"
namespace views {
diff --git a/chrome/views/controls/scrollbar/bitmap_scroll_bar.cc b/chrome/views/controls/scrollbar/bitmap_scroll_bar.cc
index 42ba4e7..da35a62 100644
--- a/chrome/views/controls/scrollbar/bitmap_scroll_bar.cc
+++ b/chrome/views/controls/scrollbar/bitmap_scroll_bar.cc
@@ -4,9 +4,9 @@
#include "chrome/views/controls/scrollbar/bitmap_scroll_bar.h"
+#include "app/l10n_util.h"
#include "base/message_loop.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/controls/menu/menu.h"
#include "chrome/views/controls/scroll_view.h"
#include "chrome/views/widget/widget.h"
diff --git a/chrome/views/controls/tabbed_pane.cc b/chrome/views/controls/tabbed_pane.cc
index 64d267b1..75d7f03 100644
--- a/chrome/views/controls/tabbed_pane.cc
+++ b/chrome/views/controls/tabbed_pane.cc
@@ -6,13 +6,13 @@
#include <vssym32.h>
+#include "app/l10n_util_win.h"
#include "app/resource_bundle.h"
#include "base/gfx/native_theme.h"
#include "base/logging.h"
#include "base/stl_util-inl.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/views/background.h"
#include "chrome/views/fill_layout.h"
#include "chrome/views/widget/root_view.h"
diff --git a/chrome/views/controls/table/table_view.cc b/chrome/views/controls/table/table_view.cc
index 828aeae..a794e91 100644
--- a/chrome/views/controls/table/table_view.cc
+++ b/chrome/views/controls/table/table_view.cc
@@ -7,13 +7,13 @@
#include <algorithm>
#include <windowsx.h>
+#include "app/l10n_util_win.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
#include "base/win_util.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/favicon_size.h"
#include "chrome/common/gfx/icon_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/common/win_util.h"
#include "chrome/views/controls/hwnd_view.h"
#include "SkBitmap.h"
diff --git a/chrome/views/controls/table/table_view.h b/chrome/views/controls/table/table_view.h
index ec575c7..e411d8a 100644
--- a/chrome/views/controls/table/table_view.h
+++ b/chrome/views/controls/table/table_view.h
@@ -16,8 +16,8 @@
#include <unicode/uchar.h>
#include <vector>
+#include "app/l10n_util.h"
#include "base/logging.h"
-#include "chrome/common/l10n_util.h"
#if defined(OS_WIN)
// TODO(port): remove the ifdef when native_control.h is ported.
#include "chrome/views/controls/native_control.h"
diff --git a/chrome/views/controls/text_field.cc b/chrome/views/controls/text_field.cc
index 5992fd3..4e61afd 100644
--- a/chrome/views/controls/text_field.cc
+++ b/chrome/views/controls/text_field.cc
@@ -11,6 +11,8 @@
#include <tom.h> // For ITextDocument, a COM interface to CRichEditCtrl
#include <vsstyle.h>
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "base/clipboard.h"
#include "base/gfx/native_theme.h"
#include "base/scoped_clipboard_writer.h"
@@ -18,8 +20,6 @@
#include "base/win_util.h"
#include "chrome/browser/browser_process.h"
#include "chrome/common/gfx/insets.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/win_util.h"
#include "chrome/views/controls/hwnd_view.h"
diff --git a/chrome/views/controls/tree/tree_view.cc b/chrome/views/controls/tree/tree_view.cc
index e09711f..13e1914d 100644
--- a/chrome/views/controls/tree/tree_view.cc
+++ b/chrome/views/controls/tree/tree_view.cc
@@ -6,13 +6,13 @@
#include <shellapi.h>
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "app/resource_bundle.h"
#include "base/stl_util-inl.h"
#include "base/win_util.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/icon_util.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/views/focus/focus_manager.h"
#include "chrome/views/widget/widget.h"
#include "grit/theme_resources.h"
diff --git a/chrome/views/view.cc b/chrome/views/view.cc
index f509f7d..561ee70 100644
--- a/chrome/views/view.cc
+++ b/chrome/views/view.cc
@@ -10,13 +10,13 @@
#include <iostream>
#endif
+#include "app/l10n_util.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/scoped_handle.h"
#include "base/string_util.h"
#include "chrome/common/drag_drop_types.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/views/background.h"
#include "chrome/views/layout_manager.h"
#include "chrome/views/widget/root_view.h"
diff --git a/chrome/views/widget/aero_tooltip_manager.cc b/chrome/views/widget/aero_tooltip_manager.cc
index e6ed9da..6e1a5fa 100644
--- a/chrome/views/widget/aero_tooltip_manager.cc
+++ b/chrome/views/widget/aero_tooltip_manager.cc
@@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/views/widget/aero_tooltip_manager.h"
+
#include <windows.h>
#include <atlbase.h>
#include <atlapp.h> // for GET_X/Y_LPARAM
#include <commctrl.h>
#include <shlobj.h>
-#include "chrome/views/widget/aero_tooltip_manager.h"
-
+#include "app/l10n_util_win.h"
#include "base/message_loop.h"
-#include "chrome/common/l10n_util_win.h"
namespace views {
diff --git a/chrome/views/widget/tooltip_manager.cc b/chrome/views/widget/tooltip_manager.cc
index dd63196..1584c29 100644
--- a/chrome/views/widget/tooltip_manager.cc
+++ b/chrome/views/widget/tooltip_manager.cc
@@ -6,10 +6,10 @@
#include <limits>
+#include "app/l10n_util.h"
+#include "app/l10n_util_win.h"
#include "base/logging.h"
#include "base/message_loop.h"
-#include "chrome/common/l10n_util.h"
-#include "chrome/common/l10n_util_win.h"
#include "chrome/common/gfx/text_elider.h"
#include "chrome/common/win_util.h"
#include "chrome/views/view.h"
diff --git a/chrome/views/window/dialog_client_view.cc b/chrome/views/window/dialog_client_view.cc
index 13ee1f0..f60bd26 100644
--- a/chrome/views/window/dialog_client_view.cc
+++ b/chrome/views/window/dialog_client_view.cc
@@ -8,12 +8,12 @@
#include <uxtheme.h>
#include <vsstyle.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/gfx/native_theme.h"
#include "chrome/browser/views/standard_layout.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/chrome_font.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/win_util.h"
#include "chrome/views/controls/button/native_button.h"
#include "chrome/views/window/dialog_delegate.h"
diff --git a/chrome/views/window/window_win.cc b/chrome/views/window/window_win.cc
index 83e09e4..0057177 100644
--- a/chrome/views/window/window_win.cc
+++ b/chrome/views/window/window_win.cc
@@ -6,6 +6,7 @@
#include <shellapi.h>
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/win_util.h"
#include "chrome/app/chrome_dll_resource.h"
@@ -13,7 +14,6 @@
#include "chrome/common/gfx/chrome_font.h"
#include "chrome/common/gfx/icon_util.h"
#include "chrome/common/gfx/path.h"
-#include "chrome/common/l10n_util.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/win_util.h"