Index: chrome/browser/browser_process_impl.cc |
=================================================================== |
--- chrome/browser/browser_process_impl.cc (revision 3603) |
+++ chrome/browser/browser_process_impl.cc (working copy) |
@@ -5,9 +5,10 @@ |
#include "chrome/browser/browser_process_impl.h" |
#include "base/command_line.h" |
+#include "base/path_service.h" |
#include "base/thread.h" |
-#include "base/path_service.h" |
#include "chrome/browser/automation/automation_provider_list.h" |
+#include "chrome/browser/browser_trial.h" |
#include "chrome/browser/chrome_thread.h" |
#include "chrome/browser/download/download_file.h" |
#include "chrome/browser/download/save_file_manager.h" |
@@ -115,6 +116,16 @@ |
else if (model == L"medium") |
memory_model_ = MEDIUM_MEMORY_MODEL; |
} |
+ } else { |
+ // Randomly choose what memory model to use. |
+ const double probability = 0.5; |
+ FieldTrial* trial(new FieldTrial(BrowserTrial::kMemoryModelFieldTrial, |
+ probability)); |
+ DCHECK(FieldTrialList::Find(BrowserTrial::kMemoryModelFieldTrial) == trial); |
+ if (trial->boolean_value()) |
+ memory_model_ = HIGH_MEMORY_MODEL; |
+ else |
+ memory_model_ = MEDIUM_MEMORY_MODEL; |
} |
suspend_controller_ = new SuspendController(); |