blob: bf963d992cd2751b35c6fce86875b06ab10d89f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chrome_browser_field_trials_mobile.h"
#include <string>
#include "base/command_line.h"
#include "base/metrics/field_trial.h"
#include "base/tracked_objects.h"
#if defined(OS_ANDROID)
#include "chrome/browser/prerender/prerender_field_trial.h"
#endif
namespace chrome {
void SetupMobileFieldTrials(const base::CommandLine& parsed_command_line) {
#if defined(OS_ANDROID)
prerender::ConfigurePrerender(parsed_command_line);
// Force-enable profiler timing depending on the field trial.
if (base::FieldTrialList::FindFullName("ProfilerTiming") == "Enable")
tracked_objects::ThreadData::EnableProfilerTiming();
#endif
}
} // namespace chrome
|