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

Issue 1059413005: Checking node object before checking its property. (Closed)

Created:
5 years, 8 months ago by Deepak
Modified:
5 years, 7 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Checking node object before checking its property. Before checking any object's properties that object should be defined. BUG=480935 Committed: https://crrev.com/bd9769126ad8c88c20d2234e838e6ef637a4b856 Cr-Commit-Position: refs/heads/master@{#327730}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Changes as per review comments. #

Total comments: 4

Patch Set 6 : Changes as per review comments. #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Changes as per review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M chrome/browser/resources/bookmark_manager/js/bmm.js View 1 2 3 4 5 6 7 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/resources/bookmark_manager/js/main.js View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 25 (2 generated)
Deepak
PTAL
5 years, 8 months ago (2015-04-24 13:17:09 UTC) #2
Bernhard Bauer
Checking for a value solves the immediate issue, but the question is why the value ...
5 years, 8 months ago (2015-04-24 13:53:15 UTC) #3
Deepak
Thanks for review. 1. Now Handling chrome.runtime.lastError in callback of chrome.bookmarkManagerPrivate.getSubtree() and when we have ...
5 years, 8 months ago (2015-04-25 12:36:11 UTC) #4
Deepak
PTAL
5 years, 8 months ago (2015-04-28 02:14:37 UTC) #5
Bernhard Bauer
This is going in the right direction, but I still don't understand why we are ...
5 years, 7 months ago (2015-04-28 07:44:41 UTC) #6
Deepak
On 2015/04/28 07:44:41, Bernhard Bauer wrote: > This is going in the right direction, but ...
5 years, 7 months ago (2015-04-28 08:54:42 UTC) #7
Bernhard Bauer
On 2015/04/28 08:54:42, Deepak wrote: > On 2015/04/28 07:44:41, Bernhard Bauer wrote: > > This ...
5 years, 7 months ago (2015-04-28 14:40:19 UTC) #8
Deepak
On 2015/04/28 14:40:19, Bernhard Bauer wrote: > On 2015/04/28 08:54:42, Deepak wrote: > > On ...
5 years, 7 months ago (2015-04-29 08:14:04 UTC) #9
Bernhard Bauer
On 2015/04/29 08:14:04, Deepak wrote: > On 2015/04/28 14:40:19, Bernhard Bauer wrote: > > On ...
5 years, 7 months ago (2015-04-29 08:55:09 UTC) #10
Deepak
On 2015/04/29 08:55:09, Bernhard Bauer wrote: > On 2015/04/29 08:14:04, Deepak wrote: > > On ...
5 years, 7 months ago (2015-04-29 11:01:33 UTC) #11
Deepak
On 2015/04/29 11:01:33, Deepak wrote: > On 2015/04/29 08:55:09, Bernhard Bauer wrote: > > On ...
5 years, 7 months ago (2015-04-30 13:42:54 UTC) #12
Bernhard Bauer
On 2015/04/30 13:42:54, Deepak wrote: > On 2015/04/29 11:01:33, Deepak wrote: > > On 2015/04/29 ...
5 years, 7 months ago (2015-04-30 13:47:59 UTC) #13
Bernhard Bauer
https://codereview.chromium.org/1059413005/diff/60001/chrome/browser/resources/bookmark_manager/js/bmm.js File chrome/browser/resources/bookmark_manager/js/bmm.js (right): https://codereview.chromium.org/1059413005/diff/60001/chrome/browser/resources/bookmark_manager/js/bmm.js#newcode62 chrome/browser/resources/bookmark_manager/js/bmm.js:62: delete loadingPromises[id]; BTW, we should delete the loading promise ...
5 years, 7 months ago (2015-04-30 13:51:07 UTC) #14
Deepak
I agree with you. When we call resolve or reject then loadingPromises[id] object existed in ...
5 years, 7 months ago (2015-04-30 15:00:59 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/1059413005/diff/80001/chrome/browser/resources/bookmark_manager/js/bmm.js File chrome/browser/resources/bookmark_manager/js/bmm.js (right): https://codereview.chromium.org/1059413005/diff/80001/chrome/browser/resources/bookmark_manager/js/bmm.js#newcode64 chrome/browser/resources/bookmark_manager/js/bmm.js:64: loadingPromises[id].then(function() { You can pull this out into a ...
5 years, 7 months ago (2015-04-30 15:08:07 UTC) #16
Deepak
PTAL https://codereview.chromium.org/1059413005/diff/80001/chrome/browser/resources/bookmark_manager/js/bmm.js File chrome/browser/resources/bookmark_manager/js/bmm.js (right): https://codereview.chromium.org/1059413005/diff/80001/chrome/browser/resources/bookmark_manager/js/bmm.js#newcode64 chrome/browser/resources/bookmark_manager/js/bmm.js:64: loadingPromises[id].then(function() { On 2015/04/30 15:08:07, Bernhard Bauer wrote: ...
5 years, 7 months ago (2015-04-30 16:11:19 UTC) #17
Bernhard Bauer
https://codereview.chromium.org/1059413005/diff/120001/chrome/browser/resources/bookmark_manager/js/bmm.js File chrome/browser/resources/bookmark_manager/js/bmm.js (right): https://codereview.chromium.org/1059413005/diff/120001/chrome/browser/resources/bookmark_manager/js/bmm.js#newcode67 chrome/browser/resources/bookmark_manager/js/bmm.js:67: return; The return statement is unnecessary.
5 years, 7 months ago (2015-04-30 16:19:52 UTC) #18
Deepak
Done. PTAL https://codereview.chromium.org/1059413005/diff/120001/chrome/browser/resources/bookmark_manager/js/bmm.js File chrome/browser/resources/bookmark_manager/js/bmm.js (right): https://codereview.chromium.org/1059413005/diff/120001/chrome/browser/resources/bookmark_manager/js/bmm.js#newcode67 chrome/browser/resources/bookmark_manager/js/bmm.js:67: return; On 2015/04/30 16:19:52, Bernhard Bauer wrote: ...
5 years, 7 months ago (2015-04-30 16:22:42 UTC) #19
Bernhard Bauer
lgtm
5 years, 7 months ago (2015-04-30 16:23:15 UTC) #20
Deepak
On 2015/04/30 16:23:15, Bernhard Bauer wrote: > lgtm Thanks.
5 years, 7 months ago (2015-04-30 16:24:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1059413005/140001
5 years, 7 months ago (2015-04-30 16:24:52 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-04-30 17:25:03 UTC) #24
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 17:26:31 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/bd9769126ad8c88c20d2234e838e6ef637a4b856
Cr-Commit-Position: refs/heads/master@{#327730}

Powered by Google App Engine
This is Rietveld 408576698