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

Issue 2913383002: Remove unnecessary IsInfoEmpty() call in app_banner_infobar_delegate_android.cc (Closed)

Created:
3 years, 6 months ago by pkotwicz
Modified:
3 years, 6 months ago
Reviewers:
dominickn
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary IsInfoEmpty() call in app_banner_infobar_delegate_android.cc BUG=728300 Review-Url: https://codereview.chromium.org/2913383002 Cr-Commit-Position: refs/heads/master@{#476531} Committed: https://chromium.googlesource.com/chromium/src/+/70f73ad825e0b878a81815df06d82e8da1e8d81e

Patch Set 1 #

Total comments: 3

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -14 lines) Patch
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 1 5 chunks +4 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
pkotwicz
Dominick, can you please take a look?
3 years, 6 months ago (2017-06-01 04:39:21 UTC) #2
dominickn
https://codereview.chromium.org/2913383002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc (right): https://codereview.chromium.org/2913383002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode52 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:52: if (url.is_empty()) Nit: add DCHECK(shortcut_info) if we're going to ...
3 years, 6 months ago (2017-06-01 04:56:30 UTC) #3
pkotwicz
https://codereview.chromium.org/2913383002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc (right): https://codereview.chromium.org/2913383002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode52 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:52: if (url.is_empty()) This is unnecessary. Line 51 will crash ...
3 years, 6 months ago (2017-06-01 05:11:29 UTC) #4
dominickn
https://codereview.chromium.org/2913383002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc (right): https://codereview.chromium.org/2913383002/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode52 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:52: if (url.is_empty()) On 2017/06/01 05:11:28, pkotwicz wrote: > This ...
3 years, 6 months ago (2017-06-01 05:29:05 UTC) #5
pkotwicz
Ok, added a DCHECK() Personally, I think that DCHECKS are mostly useful in flagging bugs ...
3 years, 6 months ago (2017-06-01 19:42:54 UTC) #6
dominickn
lgtm As a general rule, devs should be running with DCHECKs on or in debug ...
3 years, 6 months ago (2017-06-02 00:22:45 UTC) #7
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/2913383002/20001
3 years, 6 months ago (2017-06-02 01:05:50 UTC) #9
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 02:44:49 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/70f73ad825e0b878a81815df06d8...

Powered by Google App Engine
This is Rietveld 408576698