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

Side by Side Diff: chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc

Issue 2428383005: Remove switch kEnableWebRtcHWH264Encoding (Closed)
Patch Set: Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/chrome_content_browser_client_extensions_par t.h" 5 #include "chrome/browser/extensions/chrome_content_browser_client_extensions_par t.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 678
679 void ChromeContentBrowserClientExtensionsPart:: 679 void ChromeContentBrowserClientExtensionsPart::
680 AppendExtraRendererCommandLineSwitches(base::CommandLine* command_line, 680 AppendExtraRendererCommandLineSwitches(base::CommandLine* command_line,
681 content::RenderProcessHost* process, 681 content::RenderProcessHost* process,
682 Profile* profile) { 682 Profile* profile) {
683 if (!process) 683 if (!process)
684 return; 684 return;
685 DCHECK(profile); 685 DCHECK(profile);
686 if (ProcessMap::Get(profile)->Contains(process->GetID())) { 686 if (ProcessMap::Get(profile)->Contains(process->GetID())) {
687 command_line->AppendSwitch(switches::kExtensionProcess); 687 command_line->AppendSwitch(switches::kExtensionProcess);
688 #if defined(ENABLE_WEBRTC)
689 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding);
690 #endif
691 } 688 }
692 } 689 }
693 690
694 void ChromeContentBrowserClientExtensionsPart::ResourceDispatcherHostCreated() { 691 void ChromeContentBrowserClientExtensionsPart::ResourceDispatcherHostCreated() {
695 content::ResourceDispatcherHost::Get()->RegisterInterceptor( 692 content::ResourceDispatcherHost::Get()->RegisterInterceptor(
696 "Origin", kExtensionScheme, base::Bind(&OnHttpHeaderReceived)); 693 "Origin", kExtensionScheme, base::Bind(&OnHttpHeaderReceived));
697 } 694 }
698 695
699 } // namespace extensions 696 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698