Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Side by Side Diff: chrome/browser/chrome_browser_field_trials_mobile.cc

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_field_trials_mobile.h" 5 #include "chrome/browser/chrome_browser_field_trials_mobile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "base/tracked_objects.h" 11 #include "base/tracked_objects.h"
12 #include "build/build_config.h"
12 13
13 #if defined(OS_ANDROID) 14 #if defined(OS_ANDROID)
14 #include "chrome/browser/prerender/prerender_field_trial.h" 15 #include "chrome/browser/prerender/prerender_field_trial.h"
15 #endif 16 #endif
16 17
17 namespace chrome { 18 namespace chrome {
18 19
19 void SetupMobileFieldTrials(const base::CommandLine& parsed_command_line) { 20 void SetupMobileFieldTrials(const base::CommandLine& parsed_command_line) {
20 #if defined(OS_ANDROID) 21 #if defined(OS_ANDROID)
21 prerender::ConfigurePrerender(parsed_command_line); 22 prerender::ConfigurePrerender(parsed_command_line);
22 23
23 // Force-enable profiler timing depending on the field trial. 24 // Force-enable profiler timing depending on the field trial.
24 if (base::FieldTrialList::FindFullName("ProfilerTiming") == "Enable") 25 if (base::FieldTrialList::FindFullName("ProfilerTiming") == "Enable")
25 tracked_objects::ThreadData::EnableProfilerTiming(); 26 tracked_objects::ThreadData::EnableProfilerTiming();
26 #endif 27 #endif
27 } 28 }
28 29
29 } // namespace chrome 30 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_field_trials_mobile.h ('k') | chrome/browser/chrome_browser_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698