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

Side by Side Diff: content/app/content_main_runner.cc

Issue 1948663003: Remove unused line. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/app/content_main_runner.h" 5 #include "content/public/app/content_main_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 namespace { 131 namespace {
132 132
133 // This sets up two singletons responsible for managing field trials. The 133 // This sets up two singletons responsible for managing field trials. The
134 // |field_trial_list| singleton lives on the stack and must outlive the Run() 134 // |field_trial_list| singleton lives on the stack and must outlive the Run()
135 // method of the process. 135 // method of the process.
136 void InitializeFieldTrialAndFeatureList( 136 void InitializeFieldTrialAndFeatureList(
137 std::unique_ptr<base::FieldTrialList>* field_trial_list) { 137 std::unique_ptr<base::FieldTrialList>* field_trial_list) {
138 const base::CommandLine& command_line = 138 const base::CommandLine& command_line =
139 *base::CommandLine::ForCurrentProcess(); 139 *base::CommandLine::ForCurrentProcess();
140 std::string process_type =
141 command_line.GetSwitchValueASCII(switches::kProcessType);
142 140
143 // Initialize statistical testing infrastructure. We set the entropy 141 // Initialize statistical testing infrastructure. We set the entropy
144 // provider to nullptr to disallow non-browser processes from creating 142 // provider to nullptr to disallow non-browser processes from creating
145 // their own one-time randomized trials; they should be created in the 143 // their own one-time randomized trials; they should be created in the
146 // browser process. 144 // browser process.
147 field_trial_list->reset(new base::FieldTrialList(nullptr)); 145 field_trial_list->reset(new base::FieldTrialList(nullptr));
148 146
149 // Ensure any field trials in browser are reflected into the child 147 // Ensure any field trials in browser are reflected into the child
150 // process. 148 // process.
151 if (command_line.HasSwitch(switches::kForceFieldTrials)) { 149 if (command_line.HasSwitch(switches::kForceFieldTrials)) {
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 844
847 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 845 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
848 }; 846 };
849 847
850 // static 848 // static
851 ContentMainRunner* ContentMainRunner::Create() { 849 ContentMainRunner* ContentMainRunner::Create() {
852 return new ContentMainRunnerImpl(); 850 return new ContentMainRunnerImpl();
853 } 851 }
854 852
855 } // namespace content 853 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698