summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-20 17:43:59 +0000
committerjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-20 17:43:59 +0000
commit095e60bc9356f740f2dea8b7c0f85cfaca92c519 (patch)
treef8fdcd675cad1635f8fa55647051142331c7e887
parent4015fa35278dc148276721c7a361c93a80b0a362 (diff)
downloadchromium_src-095e60bc9356f740f2dea8b7c0f85cfaca92c519.zip
chromium_src-095e60bc9356f740f2dea8b7c0f85cfaca92c519.tar.gz
chromium_src-095e60bc9356f740f2dea8b7c0f85cfaca92c519.tar.bz2
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
-rw-r--r--chrome/browser/browser_process_impl.cc2
-rw-r--r--chrome/browser/render_widget_host_view_win.cc4
2 files changed, 6 insertions, 0 deletions
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<FieldTrial> 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...