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

Issue 2827553002: MD Settings: Use a browser proxy from the languages page. Re-enable test. (Closed)

Created:
3 years, 8 months ago by dpapad
Modified:
3 years, 8 months ago
Reviewers:
Dan Beam, michaelpg
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, dbeam+watch-closure_chromium.org, Dan Beam, jlklein+watch-closure_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org, vitalyp+closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Use a browser proxy from the languages page. Re-enable test. - Add a languages_browser_proxy.js - Put chrome.send, languageSettingsPrivate and inputMethodsPrivate behind the proxy. - Use the proxy to interact with the browser (both chrome.send and private APIs). - Implement a fake InputMethodPrivate API and update tests to use it (previously tests had been calling to the prod chrome.inputMethodPrivate API). - Re-enable CrSettingsLanguagesTest.Languages. BUG=692356 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2827553002 Cr-Commit-Position: refs/heads/master@{#465853} Committed: https://chromium.googlesource.com/chromium/src/+/3a1f5619eb05b1d0833c061edd68e7294878604e

Patch Set 1 : Nit #

Patch Set 2 : Make inputMethodPrivate CrOS only #

Total comments: 1

Patch Set 3 : Address @michaelpg feedback #

Patch Set 4 : update compiled_resources #

Total comments: 7

Patch Set 5 : Address @dbeam feedback #

Total comments: 2

Patch Set 6 : Address #

Patch Set 7 : Remove accidental usage of getInputMethodPrivate() on non-Cros #

Messages

Total messages: 45 (25 generated)
dpapad
3 years, 8 months ago (2017-04-18 19:42:48 UTC) #12
michaelpg
The proxy will definitely make testing simpler. I like that the "model" (languages.js) will be ...
3 years, 8 months ago (2017-04-18 23:07:39 UTC) #15
dpapad
I am not 100% sure of the changes you are requesting. Perhaps more clarification would ...
3 years, 8 months ago (2017-04-19 01:29:15 UTC) #17
michaelpg
On 2017/04/19 01:29:15, dpapad wrote: > I am not 100% sure of the changes you ...
3 years, 8 months ago (2017-04-19 02:37:30 UTC) #18
michaelpg
gah, hit Tab+Enter accidentally. I'll finish the message and send it out again.
3 years, 8 months ago (2017-04-19 02:38:13 UTC) #19
michaelpg
OK, take 2: Again, I like the browser proxy pattern. It works well for providing ...
3 years, 8 months ago (2017-04-19 02:53:57 UTC) #20
Dan Beam
dpapad@: in reading language helper, it seems that it accomplishes the goal of moving IPC ...
3 years, 8 months ago (2017-04-19 16:47:36 UTC) #21
dpapad
@michaelpg: Thanks for the clarification and for giving more context. I believe your feedback is ...
3 years, 8 months ago (2017-04-19 17:07:54 UTC) #23
dpapad
On 2017/04/19 at 17:07:54, dpapad wrote: > @michaelpg: Thanks for the clarification and for giving ...
3 years, 8 months ago (2017-04-19 17:12:30 UTC) #24
Dan Beam
https://codereview.chromium.org/2827553002/diff/140001/chrome/test/data/webui/settings/languages_tests.js File chrome/test/data/webui/settings/languages_tests.js (right): https://codereview.chromium.org/2827553002/diff/140001/chrome/test/data/webui/settings/languages_tests.js#newcode18 chrome/test/data/webui/settings/languages_tests.js:18: this.languageSettingsPrivate_ = null; this.languageSettingsPrivate_ = new settings.FakeLanguageSettingsPrivate; https://codereview.chromium.org/2827553002/diff/140001/chrome/test/data/webui/settings/languages_tests.js#newcode32 chrome/test/data/webui/settings/languages_tests.js:32: ...
3 years, 8 months ago (2017-04-19 17:46:52 UTC) #27
dpapad
https://codereview.chromium.org/2827553002/diff/140001/chrome/test/data/webui/settings/languages_tests.js File chrome/test/data/webui/settings/languages_tests.js (right): https://codereview.chromium.org/2827553002/diff/140001/chrome/test/data/webui/settings/languages_tests.js#newcode18 chrome/test/data/webui/settings/languages_tests.js:18: this.languageSettingsPrivate_ = null; On 2017/04/19 at 17:46:52, Dan Beam ...
3 years, 8 months ago (2017-04-19 18:11:30 UTC) #28
Dan Beam
https://codereview.chromium.org/2827553002/diff/140001/chrome/test/data/webui/settings/languages_tests.js File chrome/test/data/webui/settings/languages_tests.js (right): https://codereview.chromium.org/2827553002/diff/140001/chrome/test/data/webui/settings/languages_tests.js#newcode147 chrome/test/data/webui/settings/languages_tests.js:147: var languageSettingsPrivate = new settings.FakeLanguageSettingsPrivate(); On 2017/04/19 18:11:30, dpapad ...
3 years, 8 months ago (2017-04-19 18:31:56 UTC) #29
michaelpg
lgtm https://codereview.chromium.org/2827553002/diff/160001/chrome/browser/resources/settings/languages_page/languages_browser_proxy.html File chrome/browser/resources/settings/languages_page/languages_browser_proxy.html (right): https://codereview.chromium.org/2827553002/diff/160001/chrome/browser/resources/settings/languages_page/languages_browser_proxy.html#newcode1 chrome/browser/resources/settings/languages_page/languages_browser_proxy.html:1: <script src="languages_browser_proxy.js"></script> import cr.html
3 years, 8 months ago (2017-04-19 20:32:14 UTC) #30
dpapad
> i don't see that as a requirement, and am likely not to do this ...
3 years, 8 months ago (2017-04-19 20:50:12 UTC) #31
dpapad
https://codereview.chromium.org/2827553002/diff/160001/chrome/browser/resources/settings/languages_page/languages_browser_proxy.html File chrome/browser/resources/settings/languages_page/languages_browser_proxy.html (right): https://codereview.chromium.org/2827553002/diff/160001/chrome/browser/resources/settings/languages_page/languages_browser_proxy.html#newcode1 chrome/browser/resources/settings/languages_page/languages_browser_proxy.html:1: <script src="languages_browser_proxy.js"></script> On 2017/04/19 at 20:32:14, michaelpg wrote: > ...
3 years, 8 months ago (2017-04-19 20:50:30 UTC) #32
Dan Beam
lgtm
3 years, 8 months ago (2017-04-19 21:13:40 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2827553002/170001
3 years, 8 months ago (2017-04-19 21:56:32 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/434385)
3 years, 8 months ago (2017-04-19 22:57:06 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2827553002/190001
3 years, 8 months ago (2017-04-20 00:22:50 UTC) #42
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 01:41:53 UTC) #45
Message was sent while issue was closed.
Committed patchset #7 (id:190001) as
https://chromium.googlesource.com/chromium/src/+/3a1f5619eb05b1d0833c061edd68...

Powered by Google App Engine
This is Rietveld 408576698