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

Issue 10027008: chrome/browser/chromeos/input_method/ refactoring [part 5 of 6] (Closed)

Created:
8 years, 8 months ago by Yusuke Sato
Modified:
8 years, 8 months ago
Reviewers:
kinaba
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, Seigo Nonaka, Zachary Kuznia
Visibility:
Public.

Description

chrome/browser/chromeos/input_method/ refactoring [part 5 of 6]. Make chrome/browser/chromeos/preferences.cc unit-testable. Actual tests will be added in part 6 (http://codereview.chromium.org/9999018/). * Split Preferences::Init() into two parts: preference members initialization and the rest. unit_tests will only need the former. * Add Preferences::SetInputMethodList() which correctly sets the user's preferred keyboard layouts and/or input methods on signing in. The new method also sets the correct keyboard when Chrome crashes and resumes. The next CL (part 6) has a unit test for the new function. BUG=chromium-os:19655 TEST=try Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131966

Patch Set 1 : review #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -36 lines) Patch
M chrome/browser/chromeos/preferences.h View 5 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 12 chunks +68 lines, -36 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Yusuke Sato
8 years, 8 months ago (2012-04-11 10:04:22 UTC) #1
kinaba
LGTM, with just one question that perhaps doesn't matter. http://codereview.chromium.org/10027008/diff/4001/chrome/browser/chromeos/preferences.cc File chrome/browser/chromeos/preferences.cc (right): http://codereview.chromium.org/10027008/diff/4001/chrome/browser/chromeos/preferences.cc#newcode703 chrome/browser/chromeos/preferences.cc:703: ...
8 years, 8 months ago (2012-04-12 06:02:01 UTC) #2
Yusuke Sato
http://codereview.chromium.org/10027008/diff/4001/chrome/browser/chromeos/preferences.cc File chrome/browser/chromeos/preferences.cc (right): http://codereview.chromium.org/10027008/diff/4001/chrome/browser/chromeos/preferences.cc#newcode703 chrome/browser/chromeos/preferences.cc:703: input_method::InputMethodManager::GetInstance(); good point, but actually the method is static. ...
8 years, 8 months ago (2012-04-12 09:21:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusukes@chromium.org/10027008/4001
8 years, 8 months ago (2012-04-12 09:27:41 UTC) #4
commit-bot: I haz the power
8 years, 8 months ago (2012-04-12 12:07:51 UTC) #5
Change committed as 131966

Powered by Google App Engine
This is Rietveld 408576698