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

Issue 2720083002: Make OnDataTimedout and OnDidPerformInstallableCheck mutually exclusive. (Closed)

Created:
3 years, 9 months ago by F
Modified:
3 years, 9 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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make OnDataTimedout and OnDidPerformInstallableCheck mutually exclusive. AddToHomescreenDataFetcher::OnDataTimedout() and AddToHomescreenDataFetcher::OnDidPerformInstallableCheck() are the success and timeout callbacks for fetching data. This CL makes them mutually exclusive. As both functions are run on the same thread, locks are unnecessary for this case. BUG=692626 Review-Url: https://codereview.chromium.org/2720083002 Cr-Commit-Position: refs/heads/master@{#454092} Committed: https://chromium.googlesource.com/chromium/src/+/3c6d0b9a7b969fbb957b9f5960ceff6a2cc37ce1

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove redundant else and add TODO for tests #

Total comments: 4

Patch Set 3 : Combine conditionals & rewrite TODO #

Total comments: 2

Patch Set 4 : Correcting mistakes #

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

Messages

Total messages: 31 (20 generated)
F
Hi Dominick & Peter, PTAL. Thanks!
3 years, 9 months ago (2017-02-27 21:10:47 UTC) #5
pkotwicz
Can you please add gtest for add_to_homescreen_data_fetcher.cc verifying the bug that you fixed? The behavior ...
3 years, 9 months ago (2017-02-27 23:30:39 UTC) #8
F
Thanks Peter, PTAL! By offline discussion, we are going to revisit the tests in follow ...
3 years, 9 months ago (2017-02-28 23:09:42 UTC) #11
dominickn
https://codereview.chromium.org/2720083002/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/2720083002/diff/20001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc#newcode215 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc:215: if (is_installable_check_complete_) Combine the two conditionals: if (!web_contents() || ...
3 years, 9 months ago (2017-02-28 23:17:13 UTC) #12
F
Thanks Dominick & Peter, PTAL! https://codereview.chromium.org/2720083002/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/2720083002/diff/20001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc#newcode215 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc:215: if (is_installable_check_complete_) On 2017/02/28 ...
3 years, 9 months ago (2017-02-28 23:22:07 UTC) #14
dominickn
https://codereview.chromium.org/2720083002/diff/40001/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/2720083002/diff/40001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc#newcode212 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc:212: if (!web_contents() || !weak_observer_ || !is_installable_check_complete_) Should this be ...
3 years, 9 months ago (2017-02-28 23:23:15 UTC) #16
F
Thanks Dominick & Peter, PTAL! Sorry about the mistake, I wasn't thinking clearly https://codereview.chromium.org/2720083002/diff/40001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc File ...
3 years, 9 months ago (2017-03-01 15:35:21 UTC) #21
pkotwicz
LGTM
3 years, 9 months ago (2017-03-01 20:40:37 UTC) #25
dominickn
lgtm, thanks
3 years, 9 months ago (2017-03-01 23:11: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/2720083002/60001
3 years, 9 months ago (2017-03-01 23:23:48 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 23:30:13 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/3c6d0b9a7b969fbb957b9f5960ce...

Powered by Google App Engine
This is Rietveld 408576698