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

Side by Side Diff: chrome/app/chrome_exe_main_win.cc

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell/shell_main.cc ('k') | chrome/app/chrome_main_delegate.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <windows.h> 5 #include <windows.h>
6 #include <tchar.h> 6 #include <tchar.h>
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/app/breakpad_win.h" 10 #include "chrome/app/breakpad_win.h"
11 #include "chrome/app/client_util.h" 11 #include "chrome/app/client_util.h"
12 #include "chrome/app/metro_driver_win.h" 12 #include "chrome/app/metro_driver_win.h"
13 #include "content/public/app/startup_helper_win.h" 13 #include "content/public/app/startup_helper_win.h"
14 #include "content/public/common/result_codes.h" 14 #include "content/public/common/result_codes.h"
15 #include "sandbox/src/sandbox_factory.h" 15 #include "sandbox/win/src/sandbox_factory.h"
16 16
17 int RunChrome(HINSTANCE instance) { 17 int RunChrome(HINSTANCE instance) {
18 bool exit_now = true; 18 bool exit_now = true;
19 // We restarted because of a previous crash. Ask user if we should relaunch. 19 // We restarted because of a previous crash. Ask user if we should relaunch.
20 if (ShowRestartDialogIfCrashed(&exit_now)) { 20 if (ShowRestartDialogIfCrashed(&exit_now)) {
21 if (exit_now) 21 if (exit_now)
22 return content::RESULT_CODE_NORMAL_EXIT; 22 return content::RESULT_CODE_NORMAL_EXIT;
23 } 23 }
24 24
25 // Initialize the sandbox services. 25 // Initialize the sandbox services.
(...skipping 13 matching lines...) Expand all
39 CommandLine::Init(0, NULL); 39 CommandLine::Init(0, NULL);
40 // The exit manager is in charge of calling the dtors of singletons. 40 // The exit manager is in charge of calling the dtors of singletons.
41 base::AtExitManager exit_manager; 41 base::AtExitManager exit_manager;
42 42
43 MetroDriver metro_driver; 43 MetroDriver metro_driver;
44 if (metro_driver.in_metro_mode()) 44 if (metro_driver.in_metro_mode())
45 return metro_driver.RunInMetro(instance, &RunChrome); 45 return metro_driver.RunInMetro(instance, &RunChrome);
46 // Not in metro mode, proceed as normal. 46 // Not in metro mode, proceed as normal.
47 return RunChrome(instance); 47 return RunChrome(instance);
48 } 48 }
OLDNEW
« no previous file with comments | « ash/shell/shell_main.cc ('k') | chrome/app/chrome_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698