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

Issue 1880723002: Register IME extension after loading it succesfully. (Closed)

Created:
4 years, 8 months ago by xdai1
Modified:
4 years, 8 months ago
Reviewers:
Shu Chen
CC:
chromium-reviews, extensions-reviews_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, James Su, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Register IME extension after loading it succesfully. IME component is loaded by InputMethodManagerImpl::LoadNecessaryComponentExtensions(), which bypass the default extension loading path ComponentLoader::AddDefaultComponentExtensions(), thus it doesn't register itself with ExtensionPrefValueMap and causes the NOTREACHED() error. To solve this, we manually register the IME extension after loading it successfully. BUG=454513 Committed: https://crrev.com/e64b0adc2383d929181822010194a43a052525e2 Cr-Commit-Position: refs/heads/master@{#386535}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address shuchen@'s comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
xdai1
shuchen@, could you help review this CL please? Thanks!
4 years, 8 months ago (2016-04-11 22:17:59 UTC) #2
Shu Chen
https://codereview.chromium.org/1880723002/diff/1/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/1880723002/diff/1/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1072 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1072: std::string extension_id; Using extension_ime_util::GetExtensionIDFromInputMethodID() with empty string check to ...
4 years, 8 months ago (2016-04-11 22:38:05 UTC) #4
xdai1
Please take another look, thanks for your review! https://codereview.chromium.org/1880723002/diff/1/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/1880723002/diff/1/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1077 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1077: ->RegisterExtension(extension_id, ...
4 years, 8 months ago (2016-04-12 00:04:42 UTC) #6
Shu Chen
lgtm
4 years, 8 months ago (2016-04-12 00:26:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1880723002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1880723002/40001
4 years, 8 months ago (2016-04-12 00:41:43 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 8 months ago (2016-04-12 00:58:22 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 00:59:29 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e64b0adc2383d929181822010194a43a052525e2
Cr-Commit-Position: refs/heads/master@{#386535}

Powered by Google App Engine
This is Rietveld 408576698