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

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

Issue 652313002: Enable the mojo-based serial API in the renderer behind a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-js-natives-registration
Patch Set: Created 6 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 <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 content::RenderProcessHost* process, 525 content::RenderProcessHost* process,
526 Profile* profile) { 526 Profile* profile) {
527 if (!process) 527 if (!process)
528 return; 528 return;
529 DCHECK(profile); 529 DCHECK(profile);
530 if (ProcessMap::Get(profile)->Contains(process->GetID())) { 530 if (ProcessMap::Get(profile)->Contains(process->GetID())) {
531 command_line->AppendSwitch(switches::kExtensionProcess); 531 command_line->AppendSwitch(switches::kExtensionProcess);
532 #if defined(ENABLE_WEBRTC) 532 #if defined(ENABLE_WEBRTC)
533 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); 533 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding);
534 #endif 534 #endif
535 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
536 switches::kEnableMojoSerialService)) {
537 command_line->AppendSwitch(switches::kEnableMojoSerialService);
538 }
535 } 539 }
536 } 540 }
537 541
538 } // namespace extensions 542 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/api/serial/serial_apitest.cc » ('j') | extensions/browser/api/serial/serial_apitest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698