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

Issue 2768083004: Use OneShotTimer in AddToHomescreenDataFetcher (Closed)

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

Description

Use OneShotTimer in AddToHomescreenDataFetcher Also stop it when the data is successfully fetched. BUG=705537 Review-Url: https://codereview.chromium.org/2768083004 Cr-Commit-Position: refs/heads/master@{#460418} Committed: https://chromium.googlesource.com/chromium/src/+/e939ee93a310041757e12014be35961e368b5588

Patch Set 1 #

Total comments: 2

Patch Set 2 : Stop earlier #

Total comments: 4

Patch Set 3 : Timer addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 1 2 4 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 41 (31 generated)
F
Hi Dominick, PTAL. Thanks!
3 years, 9 months ago (2017-03-23 17:39:57 UTC) #6
dominickn
If you could add a BUG link that would be great :) https://codereview.chromium.org/2768083004/diff/1/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc ...
3 years, 9 months ago (2017-03-23 22:37:36 UTC) #7
F
Thanks Dominick! PTAL https://codereview.chromium.org/2768083004/diff/1/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc (right): https://codereview.chromium.org/2768083004/diff/1/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc#newcode208 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc:208: data_timeout_timer_.Stop(); On 2017/03/23 22:37:35, dominickn wrote: ...
3 years, 9 months ago (2017-03-24 02:27:12 UTC) #10
F
I made this CL after seeing that we use OneShotTImer and stop it in success ...
3 years, 9 months ago (2017-03-24 02:31:39 UTC) #11
dominickn
It's always good to have a bug unless the CL is truly trivial. You don't ...
3 years, 9 months ago (2017-03-24 02:42:37 UTC) #12
pkotwicz
https://codereview.chromium.org/2768083004/diff/20001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc (right): https://codereview.chromium.org/2768083004/diff/20001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc#newcode193 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc:193: if (!is_icon_saved_) { I think that with your change ...
3 years, 9 months ago (2017-03-24 17:38:48 UTC) #16
F
Thanks Dominick & Peter! PTAL https://codereview.chromium.org/2768083004/diff/20001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc (right): https://codereview.chromium.org/2768083004/diff/20001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc#newcode193 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc:193: if (!is_icon_saved_) { On ...
3 years, 9 months ago (2017-03-27 18:52:01 UTC) #35
dominickn
lgtm, thanks
3 years, 9 months ago (2017-03-27 23:04:33 UTC) #36
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/2768083004/100001
3 years, 8 months ago (2017-03-29 15:51:47 UTC) #38
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 16:34:21 UTC) #41
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e939ee93a310041757e12014be35...

Powered by Google App Engine
This is Rietveld 408576698