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

Side by Side Diff: chrome/browser/chromeos/base/locale_util.cc

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. Created 6 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/base/locale_util.h" 5 #include "chrome/browser/chromeos/base/locale_util.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chromeos/input_method/input_method_util.h" 10 #include "chrome/browser/chromeos/input_method/input_method_util.h"
11 #include "chromeos/ime/input_method_manager.h"
12 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "ui/base/ime/chromeos/input_method_manager.h"
13 #include "ui/base/resource/resource_bundle.h" 13 #include "ui/base/resource/resource_bundle.h"
14 #include "ui/gfx/platform_font_pango.h" 14 #include "ui/gfx/platform_font_pango.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 namespace { 18 namespace {
19 19
20 struct SwitchLanguageData { 20 struct SwitchLanguageData {
21 SwitchLanguageData(const std::string& locale, 21 SwitchLanguageData(const std::string& locale,
22 const bool enable_locale_keyboard_layouts, 22 const bool enable_locale_keyboard_layouts,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 base::Closure reloader( 113 base::Closure reloader(
114 base::Bind(&SwitchLanguageDoReloadLocale, base::Unretained(data.get()))); 114 base::Bind(&SwitchLanguageDoReloadLocale, base::Unretained(data.get())));
115 content::BrowserThread::PostBlockingPoolTaskAndReply( 115 content::BrowserThread::PostBlockingPoolTaskAndReply(
116 FROM_HERE, 116 FROM_HERE,
117 reloader, 117 reloader,
118 base::Bind(&FinishSwitchLanguage, base::Passed(data.Pass()))); 118 base::Bind(&FinishSwitchLanguage, base::Passed(data.Pass())));
119 } 119 }
120 120
121 } // namespace locale_util 121 } // namespace locale_util
122 } // namespace chromeos 122 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698