|
Replace AppBannerDataFetcher with InstallableManager.
https://crrev.com/2160513002 introduces the InstallableManager, which
is a generic, caching, WebContents-scoped version of
AppBannerDataFetcher. This CL replaces AppBannerDataFetcher,
AppBannerDataFetcherDesktop and AppBannerDataFetcherAndroid
with calls to InstallableManager. Banner-specific functionality (e.g.
sending IPCs to trigger JS events in the renderer, receiving renderer
responses, etc.) has been moved to AppBannerManager, and platform-
specific code now lives in AppBannerManagerDesktop and
AppBannerManagerAndroid. This consolidates and simplifies app
banners, making it more testable and cleaner.
All app banner data fetcher code and tests are deleted in this CL.
Additionally, the app banner emulation class is no longer needed to
emulate mobile banners on desktop. Instead, the
AppBannerManagerDesktop class can be used directly. The app
banner logging code has been migrated to the installable component,
allowing other systems to make use of it.
The data fetcher tests have been migrated to run with the
AppBannerManager. Future CLs will introduce further tests and new
metrics with the InstallableErrorCode enum that is now used to
signal error states.
BUG= 628921
TBR=thestig@chromium.org
Committed: https://crrev.com/d223e62e9459d219141c09ac6b10f983c841fa45
Cr-Commit-Position: refs/heads/master@{#410959}
Total comments: 16
Total comments: 8
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1107 lines, -2262 lines) |
Patch |
|
M |
chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java
|
View
|
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
D |
chrome/browser/android/banners/app_banner_data_fetcher_android.h
|
View
|
|
1 chunk |
+0 lines, -65 lines |
0 comments
|
Download
|
|
D |
chrome/browser/android/banners/app_banner_data_fetcher_android.cc
|
View
|
|
1 chunk |
+0 lines, -121 lines |
0 comments
|
Download
|
|
M |
chrome/browser/android/banners/app_banner_infobar_delegate_android.h
|
View
|
|
3 chunks |
+18 lines, -16 lines |
0 comments
|
Download
|
|
M |
chrome/browser/android/banners/app_banner_infobar_delegate_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
5 chunks |
+32 lines, -30 lines |
0 comments
|
Download
|
|
M |
chrome/browser/android/banners/app_banner_manager_android.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
3 chunks |
+55 lines, -23 lines |
0 comments
|
Download
|
|
M |
chrome/browser/android/banners/app_banner_manager_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
8 chunks |
+147 lines, -61 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_data_fetcher.h
|
View
|
|
1 chunk |
+0 lines, -218 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_data_fetcher.cc
|
View
|
|
1 chunk |
+0 lines, -496 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_data_fetcher_browsertest.cc
|
View
|
|
1 chunk |
+0 lines, -349 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_data_fetcher_desktop.h
|
View
|
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_data_fetcher_desktop.cc
|
View
|
|
1 chunk |
+0 lines, -100 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_data_fetcher_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -148 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_debug_log.h
|
View
|
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_debug_log.cc
|
View
|
|
1 chunk |
+0 lines, -135 lines |
0 comments
|
Download
|
|
M |
chrome/browser/banners/app_banner_infobar_delegate_desktop.h
|
View
|
|
3 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
|
M |
chrome/browser/banners/app_banner_infobar_delegate_desktop.cc
|
View
|
|
5 chunks |
+15 lines, -16 lines |
0 comments
|
Download
|
|
M |
chrome/browser/banners/app_banner_manager.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+200 lines, -42 lines |
0 comments
|
Download
|
|
M |
chrome/browser/banners/app_banner_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
5 chunks |
+350 lines, -49 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/banners/app_banner_manager_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+148 lines, -144 lines |
0 comments
|
Download
|
|
M |
chrome/browser/banners/app_banner_manager_desktop.h
|
View
|
|
1 chunk |
+27 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/banners/app_banner_manager_desktop.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+88 lines, -16 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_manager_emulation.h
|
View
|
|
1 chunk |
+0 lines, -33 lines |
0 comments
|
Download
|
|
D |
chrome/browser/banners/app_banner_manager_emulation.cc
|
View
|
|
1 chunk |
+0 lines, -47 lines |
0 comments
|
Download
|
|
M |
chrome/browser/banners/app_banner_settings_helper.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/browser.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
3 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 66 (48 generated)
|