summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-29 20:22:41 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-29 20:22:41 +0000
commit6256e21b43e8c31da3c8ecc81621dd2c8362bc2a (patch)
treeb74cd7cb25cea39428b2aabbe5e580812660fea0 /chrome
parent136eae42410ba7527babd9f582194bb25021d429 (diff)
downloadchromium_src-6256e21b43e8c31da3c8ecc81621dd2c8362bc2a.zip
chromium_src-6256e21b43e8c31da3c8ecc81621dd2c8362bc2a.tar.gz
chromium_src-6256e21b43e8c31da3c8ecc81621dd2c8362bc2a.tar.bz2
Fixing: DataSource is used before null check in GetLoadTimes.
BUG=None TEST=None Review URL: http://codereview.chromium.org/150036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19518 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/loadtimes_extension_bindings.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/loadtimes_extension_bindings.cc b/chrome/renderer/loadtimes_extension_bindings.cc
index 5a65af7..11b5d89 100644
--- a/chrome/renderer/loadtimes_extension_bindings.cc
+++ b/chrome/renderer/loadtimes_extension_bindings.cc
@@ -67,9 +67,9 @@ class LoadTimesExtensionWrapper : public v8::Extension {
WebFrame* frame = WebFrame::RetrieveFrameForEnteredContext();
if (frame) {
WebDataSource* data_source = frame->GetDataSource();
- NavigationState* navigation_state =
- NavigationState::FromDataSource(data_source);
if (data_source) {
+ NavigationState* navigation_state =
+ NavigationState::FromDataSource(data_source);
v8::Local<v8::Object> load_times = v8::Object::New();
load_times->Set(
v8::String::New("requestTime"),