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

Unified Diff: components/nacl/broker/nacl_broker_listener.cc

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows build fix Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/broker/nacl_broker_listener.cc
diff --git a/chrome/nacl/nacl_broker_listener.cc b/components/nacl/broker/nacl_broker_listener.cc
similarity index 91%
rename from chrome/nacl/nacl_broker_listener.cc
rename to components/nacl/broker/nacl_broker_listener.cc
index e310dfeb406c581d8ee142cfc480e3d4e1724d7d..ced3626b571dbdf16e3c34bc40d316265ade7852 100644
--- a/chrome/nacl/nacl_broker_listener.cc
+++ b/components/nacl/broker/nacl_broker_listener.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/nacl/nacl_broker_listener.h"
+#include "components/nacl/broker/nacl_broker_listener.h"
#include "base/base_switches.h"
#include "base/bind.h"
@@ -11,10 +11,11 @@
#include "base/message_loop/message_loop_proxy.h"
#include "base/path_service.h"
#include "base/process_util.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/common/nacl_cmd_line.h"
-#include "chrome/common/nacl_debug_exception_handler_win.h"
-#include "chrome/common/nacl_messages.h"
+#include "components/nacl/common/nacl_debug_exception_handler_win.h"
+#include "components/nacl/common/nacl_delegate.h"
+#include "components/nacl/common/nacl_messages.h"
+#include "components/nacl/common/nacl_switches.h"
+#include "content/public/common/content_switches.h"
#include "content/public/common/sandbox_init.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_switches.h"
@@ -95,7 +96,7 @@ void NaClBrokerListener::OnLaunchLoaderThroughBroker(
PathService::Get(base::FILE_EXE, &exe_path);
if (!exe_path.empty()) {
CommandLine* cmd_line = new CommandLine(exe_path);
- nacl::CopyNaClCommandLineArguments(cmd_line);
+ GetNaClDelegate()->CopyNaClCommandLineArguments(cmd_line);
cmd_line->AppendSwitchASCII(switches::kProcessType,
switches::kNaClLoaderProcess);

Powered by Google App Engine
This is Rietveld 408576698