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

Issue 2968693003: [Android Webapps] Make AddToHomescreenDataFetcher easier to test (Closed)

Created:
3 years, 5 months ago by pkotwicz
Modified:
3 years, 5 months ago
Reviewers:
dominickn
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org, Xi Han
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android Webapps] Make AddToHomescreenDataFetcher easier to test This CL makes AddToHomescreenDataFetcher use a WeakPtrFactory. This enables cancelling all pending asynchronous operations when AddToHomescreenDataFetcher times out. BUG=721881 Review-Url: https://codereview.chromium.org/2968693003 Cr-Commit-Position: refs/heads/master@{#484411} Committed: https://chromium.googlesource.com/chromium/src/+/484d04841e5e80857f49625cdb5d647c7ddcc6de

Patch Set 1 : Merge branch 'homescreen_fetcher0' into homescreen_fetcher_weak_ptr #

Total comments: 1

Patch Set 2 : Merge branch 'master' into homescreen_fetcher_weak_ptr2 #

Patch Set 3 : Merge branch 'master' into homescreen_fetcher_weak_ptr2 #

Total comments: 1

Patch Set 4 : Merge branch 'master' into homescreen_fetcher_weak_ptr2 #

Patch Set 5 : Merge branch 'master' into homescreen_fetcher_weak_ptr2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -154 lines) Patch
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h View 1 2 3 7 chunks +11 lines, -31 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 1 2 3 4 13 chunks +75 lines, -72 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc View 15 chunks +11 lines, -29 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_manager.h View 4 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_manager.cc View 2 3 3 chunks +2 lines, -17 lines 0 comments Download

Messages

Total messages: 36 (20 generated)
pkotwicz
Dominick, can you please take a look?
3 years, 5 months ago (2017-06-30 21:49:45 UTC) #3
pkotwicz
Dominick, can you please take a look? I hope that this CL will make the ...
3 years, 5 months ago (2017-06-30 21:51:16 UTC) #4
dominickn
This mostly looks fine. I'll be honest though, this makes my CL harder. It's a ...
3 years, 5 months ago (2017-07-03 00:43:16 UTC) #5
pkotwicz
Dominick, can you please take another look? I don't mind waiting for your CL to ...
3 years, 5 months ago (2017-07-04 16:04:25 UTC) #7
dominickn
lgtm This definitely makes the code easier to reason about. I was just saying it ...
3 years, 5 months ago (2017-07-05 00:16:09 UTC) #8
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/2968693003/80001
3 years, 5 months ago (2017-07-05 02:11:02 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/130873) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 5 months ago (2017-07-05 02:13:14 UTC) #13
dominickn
https://codereview.chromium.org/2968693003/diff/80001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h File chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h (right): https://codereview.chromium.org/2968693003/diff/80001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h#newcode10 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h:10: #include "base/macros.h" Nit: #include "base/memory/weak_ptr.h"
3 years, 5 months ago (2017-07-05 03:04:40 UTC) #14
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/2968693003/120001
3 years, 5 months ago (2017-07-05 04:37:16 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/330969)
3 years, 5 months ago (2017-07-05 06:22:23 UTC) #20
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/2968693003/140001
3 years, 5 months ago (2017-07-05 20:11:34 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/456249) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 5 months ago (2017-07-05 20:13:41 UTC) #26
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/2968693003/160001
3 years, 5 months ago (2017-07-05 21:24:44 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_TIMED_OUT, build has not started yet; ...
3 years, 5 months ago (2017-07-05 23:25:43 UTC) #31
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/2968693003/160001
3 years, 5 months ago (2017-07-06 00:14:48 UTC) #33
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 00:25:58 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/484d04841e5e80857f49625cdb5d...

Powered by Google App Engine
This is Rietveld 408576698