diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 16:39:01 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 16:39:01 +0000 |
commit | 41da4799559e2e8c2b8434dc74bee5f1fa030dc1 (patch) | |
tree | b94bb0690f2a306c70944e0cf6a8f76015857796 /chrome/renderer/loadtimes_extension_bindings.cc | |
parent | d371c0d2acecbe92f475c8332ab8e19e56e3f1b1 (diff) | |
download | chromium_src-41da4799559e2e8c2b8434dc74bee5f1fa030dc1.zip chromium_src-41da4799559e2e8c2b8434dc74bee5f1fa030dc1.tar.gz chromium_src-41da4799559e2e8c2b8434dc74bee5f1fa030dc1.tar.bz2 |
Reverting 19361.
tbr=darin
Review URL: http://codereview.chromium.org/149081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/loadtimes_extension_bindings.cc')
-rw-r--r-- | chrome/renderer/loadtimes_extension_bindings.cc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/chrome/renderer/loadtimes_extension_bindings.cc b/chrome/renderer/loadtimes_extension_bindings.cc index 5a65af7..4b800a7 100644 --- a/chrome/renderer/loadtimes_extension_bindings.cc +++ b/chrome/renderer/loadtimes_extension_bindings.cc @@ -29,10 +29,10 @@ class LoadTimesExtensionWrapper : public v8::Extension { // navigationType: A string describing what user action initiated the load LoadTimesExtensionWrapper() : v8::Extension(kLoadTimesExtensionName, - "var chrome;" - "if (!chrome)" - " chrome = {};" - "chrome.GetLoadTimes = function() {" + "var chromium;" + "if (!chromium)" + " chromium = {};" + "chromium.GetLoadTimes = function() {" " native function GetLoadTimes();" " return GetLoadTimes();" "}") {} @@ -78,9 +78,6 @@ class LoadTimesExtensionWrapper : public v8::Extension { v8::String::New("startLoadTime"), v8::Number::New(navigation_state->start_load_time().ToDoubleT())); load_times->Set( - v8::String::New("commitLoadTime"), - v8::Number::New(navigation_state->commit_load_time().ToDoubleT())); - load_times->Set( v8::String::New("finishDocumentLoadTime"), v8::Number::New( navigation_state->finish_document_load_time().ToDoubleT())); @@ -88,12 +85,11 @@ class LoadTimesExtensionWrapper : public v8::Extension { v8::String::New("finishLoadTime"), v8::Number::New(navigation_state->finish_load_time().ToDoubleT())); load_times->Set( - v8::String::New("firstPaintTime"), - v8::Number::New(navigation_state->first_paint_time().ToDoubleT())); + v8::String::New("firstLayoutTime"), + v8::Number::New(navigation_state->first_layout_time().ToDoubleT())); load_times->Set( v8::String::New("navigationType"), v8::String::New(GetNavigationType(data_source->navigationType()))); - return load_times; } } |