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

Issue 1428523006: Add Closure compiling instructions for site_list. (Closed)

Created:
5 years, 1 month ago by Finnur
Modified:
5 years, 1 month ago
Reviewers:
Dan Beam
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, dbeam+watch-closure_chromium.org, stevenjb+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Closure compiling instructions for site_list. BUG=543635 Committed: https://crrev.com/f80fa02e061de747625371414ea4c012fd565c10 Cr-Commit-Position: refs/heads/master@{#360803}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address feedback #

Total comments: 2

Patch Set 3 : Address feedback #

Total comments: 3

Patch Set 4 : Sync'd to head (no code change) #

Patch Set 5 : Address feedback #

Patch Set 6 : Back to approved version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -7 lines) Patch
M chrome/browser/resources/settings/site_settings/compiled_resources.gyp View 1 2 3 4 5 4 chunks +22 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/site_list.js View 1 2 3 5 4 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
Finnur
https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js#newcode147 chrome/browser/resources/settings/site_settings/site_list.js:147: var setting = sites[origin].setting; Is this (and the change ...
5 years, 1 month ago (2015-11-09 15:56:09 UTC) #2
Dan Beam
https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js#newcode146 chrome/browser/resources/settings/site_settings/site_list.js:146: /** @type {{setting:Number}}*/ this @type doesn't make sense here, ...
5 years, 1 month ago (2015-11-09 19:28:56 UTC) #3
Finnur
Haven't updated the code. Just wanted to get a quick question in... https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js ...
5 years, 1 month ago (2015-11-10 00:39:43 UTC) #4
Dan Beam
https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js#newcode174 chrome/browser/resources/settings/site_settings/site_list.js:174: /** @type {{model:Object}}*/ On 2015/11/10 00:39:43, Finnur wrote: > ...
5 years, 1 month ago (2015-11-10 05:58:58 UTC) #5
Finnur
https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js#newcode146 chrome/browser/resources/settings/site_settings/site_list.js:146: /** @type {{setting:Number}}*/ It is modeled after other code ...
5 years, 1 month ago (2015-11-10 11:58:50 UTC) #6
Dan Beam
https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/1428523006/diff/1/chrome/browser/resources/settings/site_settings/site_list.js#newcode146 chrome/browser/resources/settings/site_settings/site_list.js:146: /** @type {{setting:Number}}*/ On 2015/11/10 11:58:50, Finnur wrote: > ...
5 years, 1 month ago (2015-11-11 07:01:40 UTC) #7
Finnur
OK, this is a little closer to what I am after. PTAL.
5 years, 1 month ago (2015-11-11 13:41:23 UTC) #9
Dan Beam
lgtm i suppose https://codereview.chromium.org/1428523006/diff/60001/chrome/browser/resources/settings/site_settings/site_list.js File chrome/browser/resources/settings/site_settings/site_list.js (right): https://codereview.chromium.org/1428523006/diff/60001/chrome/browser/resources/settings/site_settings/site_list.js#newcode170 chrome/browser/resources/settings/site_settings/site_list.js:170: * @param {!{model: !{item: !{url: string}}}} ...
5 years, 1 month ago (2015-11-11 23:18:39 UTC) #10
Finnur
I had explored the Polymer.Base angle before but couldn't get it to work. But if ...
5 years, 1 month ago (2015-11-12 16:21:16 UTC) #12
Dan Beam
On 2015/11/12 16:21:16, Finnur wrote: > I had explored the Polymer.Base angle before but couldn't ...
5 years, 1 month ago (2015-11-12 22:42:23 UTC) #13
Finnur
That's what I thought I was doing. Polymer.base is defined here: third_party/polymer/v1_0/components-chromium/polymer-externs/polymer.externs.js As I see ...
5 years, 1 month ago (2015-11-13 10:32:00 UTC) #14
Dan Beam
On 2015/11/13 10:32:00, Finnur wrote: > That's what I thought I was doing. > > ...
5 years, 1 month ago (2015-11-13 15:32:54 UTC) #15
Finnur
I do appreciate the terminology lesson, but I'm not sure how to apply it to ...
5 years, 1 month ago (2015-11-13 16:59:42 UTC) #16
Finnur
I don't want this to bitrot on a minor issue like this, so I'm checking ...
5 years, 1 month ago (2015-11-20 11:01:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428523006/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428523006/140001
5 years, 1 month ago (2015-11-20 11:01:55 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 1 month ago (2015-11-20 11:41:00 UTC) #21
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/f80fa02e061de747625371414ea4c012fd565c10 Cr-Commit-Position: refs/heads/master@{#360803}
5 years, 1 month ago (2015-11-20 11:42:35 UTC) #22
michaelpg
5 years, 1 month ago (2015-11-20 14:26:55 UTC) #23
Message was sent while issue was closed.
On 2015/11/12 22:42:23, Dan Beam wrote:
> On 2015/11/12 16:21:16, Finnur wrote:
> > I had explored the Polymer.Base angle before but couldn't get it to work.
But
> if
> > that's the way to go, then I'm willing to explore it further.
> > 
> > Unfortunately, Closure doesn't want to recognize Polymer.Base, even if I add
> the
> > polymer.externs.js as an extern in compiled_resources.gyp (see CL).
> > 
> > Am I doing it wrong?
> 
> you'd need to find where polymer.base is being defined and add that as a
> dependency

:-\ I haven't had any luck getting polymer-micro-extracted.js to compile.

https://codereview.chromium.org/1428523006/diff/60001/chrome/browser/resource...
File chrome/browser/resources/settings/site_settings/site_list.js (right):

https://codereview.chromium.org/1428523006/diff/60001/chrome/browser/resource...
chrome/browser/resources/settings/site_settings/site_list.js:173: onOriginTap_:
function(event) {
On 2015/11/11 23:18:39, Dan Beam wrote:
> and this should probably be
> 
> var model = /** @type {Object<Polymer.Base>} */(event.model);

I think you mean (event['model']). if you @param event as an {Event}, model
isn't a valid property

> 
>
https://github.com/Polymer/polymer/blob/f58d9faf54948c8df300eedd2379459e82ffc...

The annotation you linked to doesn't even seem correct -- shouldn't it @return a
{Polymer.Base}, not an {Object<Polymer.Base>}?

Besides which, typing it as such isn't particularly helpful because we're
interested in the "item" property of this particular Polymer.Base, which is not
a property of Polymer.Base's in general.

Powered by Google App Engine
This is Rietveld 408576698