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

Unified Diff: chrome/browser/chromeos/options/language_hangul_config_view.cc

Issue 1142005: Mocks for all libcros elements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/options/language_hangul_config_view.cc
===================================================================
--- chrome/browser/chromeos/options/language_hangul_config_view.cc (revision 42341)
+++ chrome/browser/chromeos/options/language_hangul_config_view.cc (working copy)
@@ -6,6 +6,7 @@
#include "app/combobox_model.h"
#include "app/l10n_util.h"
+#include "chrome/browser/chromeos/cros/cros_library.h"
#include "chrome/browser/chromeos/cros/language_library.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
@@ -76,10 +77,10 @@
DISALLOW_COPY_AND_ASSIGN(HangulKeyboardComboboxModel);
};
-LanguageHangulConfigView::LanguageHangulConfigView() :
- contents_(NULL),
- hangul_keyboard_combobox_(NULL),
- hangul_keyboard_combobox_model_(new HangulKeyboardComboboxModel) {
+LanguageHangulConfigView::LanguageHangulConfigView()
+ : contents_(NULL),
+ hangul_keyboard_combobox_(NULL),
+ hangul_keyboard_combobox_model_(new HangulKeyboardComboboxModel) {
}
LanguageHangulConfigView::~LanguageHangulConfigView() {
@@ -91,7 +92,7 @@
config.type = ImeConfigValue::kValueTypeString;
config.string_value =
hangul_keyboard_combobox_model_->GetItemIDAt(new_index);
- LanguageLibrary::Get()->SetImeConfig(
+ CrosLibrary::Get()->GetLanguageLibrary()->SetImeConfig(
kHangulSection, kHangulKeyboardConfigName, config);
UpdateHangulKeyboardCombobox();
@@ -158,7 +159,7 @@
void LanguageHangulConfigView::UpdateHangulKeyboardCombobox() {
DCHECK(hangul_keyboard_combobox_);
ImeConfigValue config;
- if (LanguageLibrary::Get()->GetImeConfig(
+ if (CrosLibrary::Get()->GetLanguageLibrary()->GetImeConfig(
kHangulSection, kHangulKeyboardConfigName, &config)) {
const int index
= hangul_keyboard_combobox_model_->GetIndexFromID(config.string_value);
« no previous file with comments | « chrome/browser/chromeos/options/language_config_view.cc ('k') | chrome/browser/chromeos/options/network_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698