| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index d6d5d6e1cf156cc581e8886e24df8e41e9870301..cfb29e5262c5b7576fad40af64b816c09516bd0d 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -2860,25 +2860,21 @@ void RenderViewImpl::DidFlushPaint() {
|
| if (main_frame->isWebRemoteFrame())
|
| return;
|
|
|
| - // If we have a provisional frame we are between the start and commit stages
|
| - // of loading and we don't want to save stats.
|
| - if (!main_frame->provisionalDataSource()) {
|
| - WebDataSource* ds = main_frame->dataSource();
|
| - if (!ds)
|
| - return;
|
| + WebDataSource* ds = main_frame->dataSource();
|
| + if (!ds)
|
| + return;
|
|
|
| - DocumentState* document_state = DocumentState::FromDataSource(ds);
|
| + DocumentState* document_state = DocumentState::FromDataSource(ds);
|
|
|
| - // TODO(jar): The following code should all be inside a method, probably in
|
| - // NavigatorState.
|
| - Time now = Time::Now();
|
| - if (document_state->first_paint_time().is_null()) {
|
| - document_state->set_first_paint_time(now);
|
| - }
|
| - if (document_state->first_paint_after_load_time().is_null() &&
|
| - !document_state->finish_load_time().is_null()) {
|
| - document_state->set_first_paint_after_load_time(now);
|
| - }
|
| + // TODO(jar): The following code should all be inside a method, probably in
|
| + // NavigatorState.
|
| + Time now = Time::Now();
|
| + if (document_state->first_paint_time().is_null()) {
|
| + document_state->set_first_paint_time(now);
|
| + }
|
| + if (document_state->first_paint_after_load_time().is_null() &&
|
| + !document_state->finish_load_time().is_null()) {
|
| + document_state->set_first_paint_after_load_time(now);
|
| }
|
| }
|
|
|
|
|