Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/browser/ui/toolbar/encoding_menu_controller.cc

Issue 649413002: Roll src/third_party/icu 8ac906f:d8b2a9d (svn 292317:292476) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: space/indent fix Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/toolbar/encoding_menu_controller.h" 5 #include "chrome/browser/ui/toolbar/encoding_menu_controller.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/app/chrome_command_ids.h" 10 #include "chrome/app/chrome_command_ids.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/character_encoding.h" 12 #include "chrome/browser/character_encoding.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 17
18 const int EncodingMenuController::kValidEncodingIds[] = { 18 const int EncodingMenuController::kValidEncodingIds[] = {
19 IDC_ENCODING_UTF8, 19 IDC_ENCODING_UTF8,
20 IDC_ENCODING_UTF16LE, 20 IDC_ENCODING_UTF16LE,
21 IDC_ENCODING_ISO88591,
22 IDC_ENCODING_WINDOWS1252, 21 IDC_ENCODING_WINDOWS1252,
23 IDC_ENCODING_GBK, 22 IDC_ENCODING_GBK,
24 IDC_ENCODING_GB18030, 23 IDC_ENCODING_GB18030,
25 IDC_ENCODING_BIG5, 24 IDC_ENCODING_BIG5,
26 IDC_ENCODING_BIG5HKSCS, 25 IDC_ENCODING_BIG5HKSCS,
27 IDC_ENCODING_KOREAN, 26 IDC_ENCODING_KOREAN,
28 IDC_ENCODING_SHIFTJIS, 27 IDC_ENCODING_SHIFTJIS,
29 IDC_ENCODING_ISO2022JP, 28 IDC_ENCODING_ISO2022JP,
30 IDC_ENCODING_EUCJP, 29 IDC_ENCODING_EUCJP,
31 IDC_ENCODING_THAI, 30 IDC_ENCODING_THAI,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 for (it = encodings->begin(); it != encodings->end(); ++it) { 130 for (it = encodings->begin(); it != encodings->end(); ++it) {
132 if (it->encoding_id) { 131 if (it->encoding_id) {
133 base::string16 encoding = it->encoding_display_name; 132 base::string16 encoding = it->encoding_display_name;
134 base::i18n::AdjustStringForLocaleDirection(&encoding); 133 base::i18n::AdjustStringForLocaleDirection(&encoding);
135 menu_items->push_back(EncodingMenuItem(it->encoding_id, encoding)); 134 menu_items->push_back(EncodingMenuItem(it->encoding_id, encoding));
136 } else { 135 } else {
137 menu_items->push_back(separator); 136 menu_items->push_back(separator);
138 } 137 }
139 } 138 }
140 } 139 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698