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

Issue 1179323005: Polymer upgraded to 1.0 in login flow. (Closed)

Created:
5 years, 6 months ago by dzhioev (left Google)
Modified:
5 years, 6 months ago
CC:
chromium-reviews, michaelpg+watch-polymer_chromium.org, dzhioev+watch_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@polymer_pre_migration
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Polymer upgraded to 1.0 in login flow. Large changes: * There are no filters in 1.0, that's why 'i18n' filters were replaced with 'i18n-content' ({{'searching' | i18n}} --> i18n-content="login_ControllerPairingScreen_searching") * <oobe-screen> wath replaced with OobeScreenBehavior, as 1.0 doesn't support inheritance. * In 1.0 Polymer doesn't observe changes in properties which are Objects. That's why all context bindings ({{C.foo}}) stopped working. Created workaround for that problem (OobeScreenBehavior.registerBoundContextField). Before and after versions are not totally equivalent: some styles and minor issues were fixed. (no presubmit because CSS checker doesn't understand CSS mixins) BUG=489843 NOPRESUBMIT=true TEST=existing tests Committed: https://crrev.com/8b64c3b6e3842d90a81e0dcedbfde554ed03e9e4 Cr-Commit-Position: refs/heads/master@{#335774}

Patch Set 1 #

Patch Set 2 : Fixed neon-animated-pages issue. #

Patch Set 3 : Fixed tests. #

Total comments: 22

Patch Set 4 : Comments addressed. #

Total comments: 7

Patch Set 5 : Michael's comments. #

Patch Set 6 : Michael's comments. #

Total comments: 4

Patch Set 7 : Comments addressed. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1338 lines, -971 lines) Patch
M chrome/browser/browser_resources.grd View 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_browsertest.cc View 1 2 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/controller-pairing-screen.html View 1 2 3 5 4 chunks +208 lines, -166 lines 1 comment Download
M chrome/browser/resources/chromeos/login/controller-pairing-screen.js View 1 2 3 5 3 chunks +116 lines, -25 lines 0 comments Download
M chrome/browser/resources/chromeos/login/controller_pairing_page.css View 5 4 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/resources/chromeos/login/custom_elements_login.html View 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/custom_elements_login.js View 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/custom_elements_oobe.html View 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/custom_elements_oobe.js View 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_button.css View 5 1 chunk +16 lines, -9 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_buttons.html View 1 2 3 5 2 chunks +36 lines, -19 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_buttons.js View 1 2 5 1 chunk +56 lines, -31 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_card.css View 5 3 chunks +27 lines, -21 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_card.html View 5 2 chunks +20 lines, -15 lines 0 comments Download
A + chrome/browser/resources/chromeos/login/gaia_card.js View 5 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/resources/chromeos/login/gaia_header.css View 5 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_header.html View 5 1 chunk +15 lines, -11 lines 0 comments Download
A + chrome/browser/resources/chromeos/login/gaia_header.js View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_icon_button.css View 1 2 5 1 chunk +1 line, -28 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_input.css View 5 1 chunk +14 lines, -12 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_input.html View 5 2 chunks +26 lines, -15 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_input.js View 5 3 chunks +41 lines, -23 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_input_form.css View 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_input_form.html View 5 1 chunk +21 lines, -17 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_input_form.js View 1 2 3 4 5 1 chunk +41 lines, -21 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_password_changed.css View 5 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_password_changed.html View 5 2 chunks +46 lines, -35 lines 0 comments Download
M chrome/browser/resources/chromeos/login/gaia_password_changed.js View 1 5 3 chunks +39 lines, -26 lines 0 comments Download
M chrome/browser/resources/chromeos/login/host-pairing-screen.html View 1 2 3 4 5 6 3 chunks +51 lines, -34 lines 0 comments Download
M chrome/browser/resources/chromeos/login/host-pairing-screen.js View 5 1 chunk +19 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/html-echo.html View 5 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/html-echo.js View 5 1 chunk +12 lines, -3 lines 0 comments Download
D chrome/browser/resources/chromeos/login/indeterminate-progress.html View 5 1 chunk +0 lines, -48 lines 0 comments Download
D chrome/browser/resources/chromeos/login/indeterminate-progress.js View 5 1 chunk +0 lines, -32 lines 0 comments Download
M chrome/browser/resources/chromeos/login/login.html View 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/login_common.js View 5 2 chunks +1 line, -11 lines 0 comments Download
M chrome/browser/resources/chromeos/login/login_resources.html View 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/notification_card.css View 5 2 chunks +6 lines, -18 lines 0 comments Download
M chrome/browser/resources/chromeos/login/notification_card.html View 5 2 chunks +26 lines, -32 lines 0 comments Download
M chrome/browser/resources/chromeos/login/notification_card.js View 5 1 chunk +35 lines, -9 lines 0 comments Download
M chrome/browser/resources/chromeos/login/offline_gaia.css View 5 2 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/offline_gaia.html View 5 2 chunks +60 lines, -44 lines 0 comments Download
M chrome/browser/resources/chromeos/login/offline_gaia.js View 1 2 3 4 5 6 3 chunks +65 lines, -30 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.html View 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.js View 5 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe-screen.html View 5 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe-screen.js View 5 5 chunks +41 lines, -22 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen.css View 5 1 chunk +5 lines, -13 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_controller_pairing.css View 5 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_host_pairing.css View 5 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment_webview.html View 5 5 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_user_image.css View 5 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe_screen_user_image.html View 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/pairing_device_list.css View 5 2 chunks +15 lines, -12 lines 0 comments Download
A + chrome/browser/resources/chromeos/login/polymer_config.js View 5 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/resources/chromeos/login/saml_confirm_password.css View 5 2 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/login/saml_confirm_password.html View 5 2 chunks +49 lines, -36 lines 0 comments Download
M chrome/browser/resources/chromeos/login/saml_confirm_password.js View 1 5 2 chunks +51 lines, -30 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_gaia_signin.css View 5 3 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_gaia_signin.html View 5 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_gaia_signin.js View 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_supervised_user_creation.html View 5 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/login/throbber_notice.css View 5 1 chunk +12 lines, -5 lines 0 comments Download
M chrome/browser/resources/chromeos/login/throbber_notice.html View 5 1 chunk +13 lines, -9 lines 0 comments Download
A + chrome/browser/resources/chromeos/login/throbber_notice.js View 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/data/chromeos/oobe_webui_browsertest.js View 1 2 5 1 chunk +13 lines, -4 lines 0 comments Download

Messages

Total messages: 37 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179323005/1
5 years, 6 months ago (2015-06-16 21:25:20 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/71381)
5 years, 6 months ago (2015-06-16 21:36:42 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179323005/1
5 years, 6 months ago (2015-06-16 21:48:20 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179323005/40001
5 years, 6 months ago (2015-06-17 23:41:07 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/2313)
5 years, 6 months ago (2015-06-17 23:56:03 UTC) #10
dzhioev (left Google)
Roman, please review. You probably want to read migration guide before starting review (https://www.polymer-project.org/1.0/docs/migration.html). Also ...
5 years, 6 months ago (2015-06-18 01:09:37 UTC) #12
dzhioev (left Google)
+jhawkins@ James, please review chrome/browser/browser_resources.grd
5 years, 6 months ago (2015-06-18 01:19:05 UTC) #14
James Hawkins
lgtm
5 years, 6 months ago (2015-06-18 16:41:20 UTC) #15
Roman Sorokin (ftl)
In the new version on incorrect input red warning triangle does not appear on the ...
5 years, 6 months ago (2015-06-19 13:10:32 UTC) #16
dzhioev (left Google)
https://codereview.chromium.org/1179323005/diff/40001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html File chrome/browser/resources/chromeos/login/controller-pairing-screen.html (right): https://codereview.chromium.org/1179323005/diff/40001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html#newcode47 chrome/browser/resources/chromeos/login/controller-pairing-screen.html:47: <div class="flex horizontal end-justified layout center"> On 2015/06/19 13:10:31, ...
5 years, 6 months ago (2015-06-20 02:01:55 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179323005/60001
5 years, 6 months ago (2015-06-22 19:10:01 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-22 20:33:48 UTC) #22
michaelpg
Just a couple drive-by comments. https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html File chrome/browser/resources/chromeos/login/controller-pairing-screen.html (right): https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html#newcode31 chrome/browser/resources/chromeos/login/controller-pairing-screen.html:31: <link rel="stylesheet" href="pairing_device_list.css"> This ...
5 years, 6 months ago (2015-06-22 20:39:25 UTC) #24
dzhioev (left Google)
https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html File chrome/browser/resources/chromeos/login/controller-pairing-screen.html (right): https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html#newcode31 chrome/browser/resources/chromeos/login/controller-pairing-screen.html:31: <link rel="stylesheet" href="pairing_device_list.css"> On 2015/06/22 20:39:24, michaelpg wrote: > ...
5 years, 6 months ago (2015-06-22 21:17:44 UTC) #25
Roman Sorokin (ftl)
In the new version on incorrect input red warning triangle does not appear on the ...
5 years, 6 months ago (2015-06-23 11:50:32 UTC) #26
Roman Sorokin (ftl)
On 2015/06/23 11:50:32, Roman Sorokin wrote: > In the new version on incorrect input red ...
5 years, 6 months ago (2015-06-23 19:57:11 UTC) #27
dzhioev (left Google)
<paper-input> doesn't have triangle icon anymore. GAIA's inputs doesn't have the icon as well, so ...
5 years, 6 months ago (2015-06-23 20:10:11 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1179323005/110001
5 years, 6 months ago (2015-06-23 20:16:50 UTC) #31
michaelpg
https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html File chrome/browser/resources/chromeos/login/controller-pairing-screen.html (right): https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html#newcode31 chrome/browser/resources/chromeos/login/controller-pairing-screen.html:31: <link rel="stylesheet" href="pairing_device_list.css"> On 2015/06/22 21:17:44, dzhioev wrote: > ...
5 years, 6 months ago (2015-06-23 21:46:39 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:110001)
5 years, 6 months ago (2015-06-23 22:23:10 UTC) #34
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/8b64c3b6e3842d90a81e0dcedbfde554ed03e9e4 Cr-Commit-Position: refs/heads/master@{#335774}
5 years, 6 months ago (2015-06-23 22:24:37 UTC) #35
dzhioev (left Google)
On 2015/06/23 21:46:39, michaelpg wrote: > https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html > File chrome/browser/resources/chromeos/login/controller-pairing-screen.html > (right): > > https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resources/chromeos/login/controller-pairing-screen.html#newcode31 ...
5 years, 6 months ago (2015-06-23 22:40:16 UTC) #36
michaelpg
5 years, 6 months ago (2015-06-24 00:23:05 UTC) #37
Message was sent while issue was closed.
On 2015/06/23 22:40:16, dzhioev wrote:
> On 2015/06/23 21:46:39, michaelpg wrote:
> >
>
https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resource...
> > File chrome/browser/resources/chromeos/login/controller-pairing-screen.html
> > (right):
> > 
> >
>
https://codereview.chromium.org/1179323005/diff/60001/chrome/browser/resource...
> > chrome/browser/resources/chromeos/login/controller-pairing-screen.html:31:
> <link
> > rel="stylesheet" href="pairing_device_list.css">
> > On 2015/06/22 21:17:44, dzhioev wrote:
> > > On 2015/06/22 20:39:24, michaelpg wrote:
> > > > This imports the stylesheet as a regular stylesheet to apply to the
> > document.
> > > > Polymer 1.0 has a specific way to scope stylesheets to the element being
> > > > defined:
> > > > 
> > > > <link rel="import" type="css" href="pairing_device_list.css">
> > > > 
> > > > https://www.polymer-project.org/1.0/docs/devguide/styling.html
> > > 
> > > I know that. However all CSS imports in OOBE are inlined by GRIT at
compile
> > > time, and GRIT only understands <link rel="stylesheet"> syntax.
> > > It was discussed already in
> > >
> >
>
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-polymer/DGEaA...
> > 
> > My bad, I remember that now. Thanks!
> > 
> >
>
https://codereview.chromium.org/1179323005/diff/110001/chrome/browser/resourc...
> > File chrome/browser/resources/chromeos/login/controller-pairing-screen.html
> > (right):
> > 
> >
>
https://codereview.chromium.org/1179323005/diff/110001/chrome/browser/resourc...
> > chrome/browser/resources/chromeos/login/controller-pairing-screen.html:115:
> > i18n-content="login_ControllerPairingScreen_welcomeTitle">
> > This will trigger presubmit warnings in future patches: i18n keys should use
> > javaScriptCase. I don't want it to hold up the migration, but can you add a
> TODO
> > or point me to a bug if there is one? I know these keys were set
> > programmatically before so I dunno if this came up then.
> 
> Yep, I saw those warnings, but decided to ignore them for now.
> 
> I had some thoughts about reimplementing "namespacing" feature for 1.0. In my
> thoughts there should be a behavior, which'll map translated strings to its
> properties, allowing to make things similar to what 'i18n' filter did.
> Something like:
> 
> <dom-module name="x-foo">
>   <template>
>     <span>{{S.welcomeTitle}}</span>
>   </template>
> </dom-module>
> 
> ...
> 
> Polymer({
>   is: 'x-foo',
>   behaviors: [ new I18nBehavior('login_ControllerPairing') ]
> });
> 
> 
> But I'm not sure that it's worth the effort. Only two screens in the Oobe UI
are
> using
> this "namespacing" feature, and we are not going to change them or add new
> screens anytime
> soon. However I would implemented such thing, if other WebUI folks were
> interested in it.

I think we do need to figure something out for WebUI in general. Sounds like
you might be volunteering? :-)

One other thing I just noticed -- some of these HTML files have copyright
headers.
I don't think we usually add the license headers to HTML files, for whatever
reason.

Powered by Google App Engine
This is Rietveld 408576698