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

Issue 11466010: Decompose BrowserStateMonitor into two parts, simplifying unit tests and APIs. (Closed)

Created:
8 years ago by erikwright (departed)
Modified:
8 years ago
Reviewers:
sky, Seigo Nonaka
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, yusukes+watch_chromium.org
Visibility:
Public.

Description

Decompose BrowserStateMonitor into two parts, simplifying unit tests and APIs. Decouple InputMethodManagerImpl from content notifications by requiring the client to push said notifications. BrowserStateMonitor and InputMethodPersistence thus become part of the client (configuration layer). BUG=164375 TBR=sky Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173015

Patch Set 1 #

Patch Set 2 : Further refinement, DEPS file. #

Patch Set 3 : Further refinement. #

Patch Set 4 : Tighten DEPS. #

Total comments: 6

Patch Set 5 : Review comments. #

Total comments: 1

Patch Set 6 : Null check. #

Patch Set 7 : Sync. #

Patch Set 8 : Fix gypi ordering. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -353 lines) Patch
A chrome/browser/chromeos/input_method/DEPS View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/browser_state_monitor.h View 1 2 3 4 5 6 1 chunk +10 lines, -24 lines 0 comments Download
M chrome/browser/chromeos/input_method/browser_state_monitor.cc View 1 2 3 4 5 6 chunks +15 lines, -49 lines 0 comments Download
M chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc View 1 2 3 4 5 6 5 chunks +64 lines, -167 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_configuration.cc View 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_delegate.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_delegate_impl.h View 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_delegate_impl.cc View 1 2 2 chunks +2 lines, -38 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.h View 1 2 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.cc View 1 3 chunks +0 lines, -3 lines 0 comments Download
A chrome/browser/chromeos/input_method/input_method_persistence.h View 1 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/input_method/input_method_persistence.cc View 1 2 3 4 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc View 1 1 chunk +111 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/mock_input_method_delegate.h View 1 3 chunks +0 lines, -27 lines 0 comments Download
M chrome/browser/chromeos/input_method/mock_input_method_delegate.cc View 1 chunk +1 line, -15 lines 0 comments Download
M chrome/browser/chromeos/input_method/mock_input_method_manager.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/input_method/mock_input_method_manager.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
erikwright (departed)
nona: PTAL. With this CL the decoupling from chrome/ and content/ is nearly complete.
8 years ago (2012-12-10 20:56:50 UTC) #1
Seigo Nonaka
https://codereview.chromium.org/11466010/diff/17001/chrome/browser/chromeos/input_method/browser_state_monitor.cc File chrome/browser/chromeos/input_method/browser_state_monitor.cc (right): https://codereview.chromium.org/11466010/diff/17001/chrome/browser/chromeos/input_method/browser_state_monitor.cc#newcode84 chrome/browser/chromeos/input_method/browser_state_monitor.cc:84: observer_.Run(state_); null check? If |observer_| become never NULL, please ...
8 years ago (2012-12-11 04:33:04 UTC) #2
erikwright (departed)
PTAL. https://codereview.chromium.org/11466010/diff/17001/chrome/browser/chromeos/input_method/browser_state_monitor.cc File chrome/browser/chromeos/input_method/browser_state_monitor.cc (right): https://codereview.chromium.org/11466010/diff/17001/chrome/browser/chromeos/input_method/browser_state_monitor.cc#newcode84 chrome/browser/chromeos/input_method/browser_state_monitor.cc:84: observer_.Run(state_); On 2012/12/11 04:33:04, Seigo Nonaka wrote: > ...
8 years ago (2012-12-11 16:39:44 UTC) #3
Seigo Nonaka
lgtm https://codereview.chromium.org/11466010/diff/22001/chrome/browser/chromeos/input_method/browser_state_monitor.cc File chrome/browser/chromeos/input_method/browser_state_monitor.cc (right): https://codereview.chromium.org/11466010/diff/22001/chrome/browser/chromeos/input_method/browser_state_monitor.cc#newcode35 chrome/browser/chromeos/input_method/browser_state_monitor.cc:35: observer.Run(state_); nit: please add null check here too.
8 years ago (2012-12-11 17:01:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/11466010/32001
8 years ago (2012-12-12 17:57:17 UTC) #5
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/input_method/browser_state_monitor.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-12 17:57:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/11466010/35001
8 years ago (2012-12-13 20:07:42 UTC) #7
commit-bot: I haz the power
Presubmit check for 11466010-35001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-13 20:07:53 UTC) #8
erikwright (departed)
TBR sky for c/*.gypi, as sky requested in a comment in https://chromiumcodereview.appspot.com/11488011
8 years ago (2012-12-13 20:23:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/11466010/38001
8 years ago (2012-12-13 20:23:24 UTC) #10
commit-bot: I haz the power
8 years ago (2012-12-14 00:17:10 UTC) #11
Message was sent while issue was closed.
Change committed as 173015

Powered by Google App Engine
This is Rietveld 408576698