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

Unified Diff: remoting/host/simple_host_process.cc

Issue 8414020: Expose the sandbox related code through the content API. I did a bit of cleanup while I was doing... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/simple_host_process.cc
===================================================================
--- remoting/host/simple_host_process.cc (revision 107639)
+++ remoting/host/simple_host_process.cc (working copy)
@@ -26,7 +26,6 @@
#include "base/environment.h"
#include "base/file_path.h"
#include "base/logging.h"
-#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/test/mock_chrome_application_mac.h"
@@ -51,9 +50,9 @@
#if defined(TOOLKIT_USES_GTK)
#include "ui/gfx/gtk_util.h"
-#endif
-
-#if defined(OS_WIN)
+#elif defined(OS_MACOSX)
+#include "base/mac/scoped_nsautorelease_pool.h"
+#elif defined(OS_WIN)
// TODO(garykac) Make simple host into a proper GUI app on Windows so that we
// have an hModule for the dialog resource.
HMODULE g_hModule = NULL;
@@ -261,8 +260,11 @@
};
int main(int argc, char** argv) {
- // Needed for the Mac, so we don't leak objects when threads are created.
+#if defined(OS_MACOSX)
+ // Needed so we don't leak objects when threads are created.
base::mac::ScopedNSAutoreleasePool pool;
+ mock_cr_app::RegisterMockCrApp();
+#endif
CommandLine::Init(argc, argv);
const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
@@ -274,10 +276,6 @@
gfx::GtkInitFromCommandLine(*cmd_line);
#endif // TOOLKIT_USES_GTK
-#if defined(OS_MACOSX)
- mock_cr_app::RegisterMockCrApp();
-#endif // OS_MACOSX
-
SimpleHost simple_host;
if (cmd_line->HasSwitch(kConfigSwitchName)) {

Powered by Google App Engine
This is Rietveld 408576698