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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 9705074: Supporting command line argument to force field trials (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed some ooopss... Created 8 years, 8 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 | « chrome_frame/chrome_frame_automation.cc ('k') | content/public/common/content_switches.h » ('j') | 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 const std::string locale = 625 const std::string locale =
626 content::GetContentClient()->browser()->GetApplicationLocale(); 626 content::GetContentClient()->browser()->GetApplicationLocale();
627 command_line->AppendSwitchASCII(switches::kLang, locale); 627 command_line->AppendSwitchASCII(switches::kLang, locale);
628 628
629 // If we run base::FieldTrials, we want to pass to their state to the 629 // If we run base::FieldTrials, we want to pass to their state to the
630 // renderer so that it can act in accordance with each state, or record 630 // renderer so that it can act in accordance with each state, or record
631 // histograms relating to the base::FieldTrial states. 631 // histograms relating to the base::FieldTrial states.
632 std::string field_trial_states; 632 std::string field_trial_states;
633 base::FieldTrialList::StatesToString(&field_trial_states); 633 base::FieldTrialList::StatesToString(&field_trial_states);
634 if (!field_trial_states.empty()) { 634 if (!field_trial_states.empty()) {
635 command_line->AppendSwitchASCII(switches::kForceFieldTestNameAndValue, 635 command_line->AppendSwitchASCII(switches::kForceFieldTrials,
636 field_trial_states); 636 field_trial_states);
637 } 637 }
638 638
639 content::GetContentClient()->browser()->AppendExtraCommandLineSwitches( 639 content::GetContentClient()->browser()->AppendExtraCommandLineSwitches(
640 command_line, GetID()); 640 command_line, GetID());
641 641
642 // Appending disable-gpu-feature switches due to software rendering list. 642 // Appending disable-gpu-feature switches due to software rendering list.
643 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); 643 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
644 DCHECK(gpu_data_manager); 644 DCHECK(gpu_data_manager);
645 gpu_data_manager->AppendRendererCommandLine(command_line); 645 gpu_data_manager->AppendRendererCommandLine(command_line);
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { 1346 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) {
1347 // Only honor the request if appropriate persmissions are granted. 1347 // Only honor the request if appropriate persmissions are granted.
1348 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1348 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1349 path)) 1349 path))
1350 content::GetContentClient()->browser()->OpenItem(path); 1350 content::GetContentClient()->browser()->OpenItem(path);
1351 } 1351 }
1352 1352
1353 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1353 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1354 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); 1354 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size);
1355 } 1355 }
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698