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

Issue 2799783006: [DevTools] Calculate target type and title once in constructor (Closed)

Created:
3 years, 8 months ago by dgozman
Modified:
3 years, 8 months ago
Reviewers:
pfeldman
CC:
chromium-reviews, jam, darin-cc_chromium.org, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Calculate target type and title once in constructor This is a logical thing to do by itself, improves performance and makes it easier to reason about things. It may also help to prevent crashes if we somehow get into inconsistent state by not calling delegate methods at random times. Although not directly fixing the linked crash, I expect it to go away. BUG=704346 TBR=dtrainor@chromium.org Review-Url: https://codereview.chromium.org/2799783006 Cr-Commit-Position: refs/heads/master@{#462959} Committed: https://chromium.googlesource.com/chromium/src/+/7a0e557c4434a838ab29021ae039504fbab4f564

Patch Set 1 #

Patch Set 2 : extensions fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -57 lines) Patch
M chrome/browser/android/devtools_manager_delegate_android.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/devtools_manager_delegate_android.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/devtools/chrome_devtools_manager_delegate.cc View 1 2 chunks +44 lines, -36 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 2 chunks +13 lines, -12 lines 1 comment Download

Messages

Total messages: 22 (15 generated)
dgozman
Could you please take a look?
3 years, 8 months ago (2017-04-07 02:46:06 UTC) #10
pfeldman
lgtm https://codereview.chromium.org/2799783006/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/2799783006/diff/20001/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode469 content/browser/devtools/render_frame_devtools_agent_host.cc:469: title_ = manager->delegate()->GetTargetTitle(host); meh
3 years, 8 months ago (2017-04-07 18:31:03 UTC) #11
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/2799783006/20001
3 years, 8 months ago (2017-04-07 18:45:12 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/405686)
3 years, 8 months ago (2017-04-07 18:54:02 UTC) #15
dgozman
TBR'ing dtrainor for chrome/browser/android
3 years, 8 months ago (2017-04-07 18:56:47 UTC) #17
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/2799783006/20001
3 years, 8 months ago (2017-04-07 18:57:33 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 19:27:42 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7a0e557c4434a838ab29021ae039...

Powered by Google App Engine
This is Rietveld 408576698