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

Issue 2684593002: [Local NTP] Cleanup: Don't create HTML elements dynamically (Closed)

Created:
3 years, 10 months ago by Marc Treib
Modified:
3 years, 10 months ago
Reviewers:
sfiera
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Local NTP] Cleanup: Don't create HTML elements dynamically Before this CL, many of the HTML elements on the local NTP were created dynamically in JS, for no good reason. This CL moves the element definitions into HTML where they belong. BUG=687972 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2684593002 Cr-Commit-Position: refs/heads/master@{#449001} Committed: https://chromium.googlesource.com/chromium/src/+/5af7397e1d8ae4d18d03bbfc174227fc57d6a15c

Patch Set 1 #

Patch Set 2 : tests #

Total comments: 2

Patch Set 3 : go back to dynamically creating the iframe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -62 lines) Patch
M chrome/browser/resources/local_ntp/local_ntp.css View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.html View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.js View 1 2 12 chunks +36 lines, -57 lines 0 comments Download
M chrome/test/data/local_ntp_browsertest.html View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/data/local_ntp_browsertest.js View 1 2 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
Marc Treib
PTAL! https://codereview.chromium.org/2684593002/diff/20001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (left): https://codereview.chromium.org/2684593002/diff/20001/chrome/browser/resources/local_ntp/local_ntp.js#oldcode254 chrome/browser/resources/local_ntp/local_ntp.js:254: } This block moved into init() where it ...
3 years, 10 months ago (2017-02-07 14:37:12 UTC) #5
sfiera
LGTM
3 years, 10 months ago (2017-02-07 14:45:26 UTC) #6
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/2684593002/20001
3 years, 10 months ago (2017-02-07 15:40:31 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/385198)
3 years, 10 months ago (2017-02-07 16:37:15 UTC) #11
Marc Treib
On 2017/02/07 16:37:15, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 10 months ago (2017-02-08 13:41:33 UTC) #12
sfiera
Hmm. Well, isn't the HTML on 127.0.0.1 and the Javascript in chrome-search://local-ntp then? Makes sense ...
3 years, 10 months ago (2017-02-08 14:03:52 UTC) #15
Marc Treib
On 2017/02/08 14:03:52, sfiera wrote: > Hmm. Well, isn't the HTML on 127.0.0.1 and the ...
3 years, 10 months ago (2017-02-08 14:08:30 UTC) #16
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/2684593002/40001
3 years, 10 months ago (2017-02-08 15:35:54 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 15:39:51 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5af7397e1d8ae4d18d03bbfc1742...

Powered by Google App Engine
This is Rietveld 408576698