[Presentation API, Android] Implement basic messaging
[chromium-blink-merge.git] / chrome / browser / chrome_browser_field_trials_mobile.cc
blobbf963d992cd2751b35c6fce86875b06ab10d89f5
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/chrome_browser_field_trials_mobile.h"
7 #include <string>
9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h"
11 #include "base/tracked_objects.h"
13 #if defined(OS_ANDROID)
14 #include "chrome/browser/prerender/prerender_field_trial.h"
15 #endif
17 namespace chrome {
19 void SetupMobileFieldTrials(const base::CommandLine& parsed_command_line) {
20 #if defined(OS_ANDROID)
21 prerender::ConfigurePrerender(parsed_command_line);
23 // Force-enable profiler timing depending on the field trial.
24 if (base::FieldTrialList::FindFullName("ProfilerTiming") == "Enable")
25 tracked_objects::ThreadData::EnableProfilerTiming();
26 #endif
29 } // namespace chrome