From 095e60bc9356f740f2dea8b7c0f85cfaca92c519 Mon Sep 17 00:00:00 2001 From: "jar@google.com" Date: Mon, 20 Oct 2008 17:43:59 +0000 Subject: Disable FieldTrial code to repair UI reliability test regression r=mbelshe Review URL: http://codereview.chromium.org/7520 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3608 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_process_impl.cc | 2 ++ chrome/browser/render_widget_host_view_win.cc | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'chrome') diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc index d4aabe7..c28f8c1 100644 --- a/chrome/browser/browser_process_impl.cc +++ b/chrome/browser/browser_process_impl.cc @@ -117,6 +117,7 @@ BrowserProcessImpl::BrowserProcessImpl(CommandLine& command_line) memory_model_ = MEDIUM_MEMORY_MODEL; } } else { +#if 0 // TODO(jar): Comment out setting of fix UI reliability regression. // Randomly choose what memory model to use. const double probability = 0.5; FieldTrial* trial(new FieldTrial(BrowserTrial::kMemoryModelFieldTrial, @@ -126,6 +127,7 @@ BrowserProcessImpl::BrowserProcessImpl(CommandLine& command_line) memory_model_ = HIGH_MEMORY_MODEL; else memory_model_ = MEDIUM_MEMORY_MODEL; +#endif // 0. } suspend_controller_ = new SuspendController(); diff --git a/chrome/browser/render_widget_host_view_win.cc b/chrome/browser/render_widget_host_view_win.cc index eef290f..4af8a8c 100644 --- a/chrome/browser/render_widget_host_view_win.cc +++ b/chrome/browser/render_widget_host_view_win.cc @@ -435,6 +435,7 @@ void RenderWidgetHostViewWin::OnPaint(HDC dc) { if (!whiteout_start_time_.is_null()) { TimeDelta whiteout_duration = TimeTicks::Now() - whiteout_start_time_; +#if 0 // TODO(jar): temp rollback to fix UI reliability regression // If field trial is active, report results in special histogram. static scoped_refptr trial( FieldTrialList::Find(BrowserTrial::kMemoryModelFieldTrial)); @@ -448,6 +449,9 @@ void RenderWidgetHostViewWin::OnPaint(HDC dc) { } else { UMA_HISTOGRAM_TIMES(L"MPArch.RWHH_WhiteoutDuration", whiteout_duration); } +#else + UMA_HISTOGRAM_TIMES(L"MPArch.RWHH_WhiteoutDuration", whiteout_duration); +#endif // 0. // Reset the start time to 0 so that we start recording again the next // time the backing store is NULL... -- cgit v1.1