|
|
Add chrome://popular-sites-internals/ to iOS.
Move the resources and the bulk of the implementation into
//components/ntp_tiles. Leave behind the glue code for //content and add
the corresponding glue for iOS.
Some notes:
* I couldn't figure out how to use gzipped resources for iOS, so I had
to disable gzip on the resources.
* The HTML is now flattened; this handles the <if/> tags. Apparently
they were passed through to the browser before, which renders them
ineffective.
* The handler is not enabled on iOS yet; that's downstream.
This amounts to a ~3K blowup on Android (it was probably ~2K
compressed and ~5K now). There's probably some extra savings because I
think grit minifies the JS.
BUG= 659955
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/7713f244a63217c94cef663b5dbd153d00e7cdb6
Cr-Commit-Position: refs/heads/master@{#429310}
Total comments: 27
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+426 lines, -500 lines) |
Patch |
 |
M |
chrome/browser/android/ntp/most_visited_sites_bridge.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/popular_sites.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/ntp/popular_sites.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+17 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/browser_resources.grd
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/resources/popular_sites_internals.css
|
View
|
|
1 chunk |
+0 lines, -48 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/resources/popular_sites_internals.html
|
View
|
|
1 chunk |
+0 lines, -80 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/resources/popular_sites_internals.js
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/popular_sites_internals_message_handler.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -52 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -179 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/popular_sites_internals_ui.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+72 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/ntp_tiles/BUILD.gn
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/ntp_tiles/DEPS
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
components/ntp_tiles/webui/popular_sites_internals_message_handler.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/ntp_tiles/webui/popular_sites_internals_message_handler.cc
|
View
|
1
2
3
4
5
6
7
8
|
8 chunks |
+47 lines, -53 lines |
0 comments
|
Download
|
 |
A |
components/ntp_tiles/webui/popular_sites_internals_message_handler_client.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/ntp_tiles/webui/resources/popular_sites_internals.css
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
components/ntp_tiles/webui/resources/popular_sites_internals.html
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/ntp_tiles/webui/resources/popular_sites_internals.js
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
components/resources/OWNERS
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/resources/components_resources.grd
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
components/resources/ntp_tiles_resources.grdp
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/chrome_url_constants.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/chrome_url_constants.cc
|
View
|
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ios/chrome/browser/ui/webui/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ios/chrome/browser/ui/webui/popular_sites_internals_ui.h
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+100 lines, -0 lines |
0 comments
|
Download
|
Total messages: 50 (32 generated)
|