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

Side by Side Diff: chrome/browser/chrome_browser_main_win.cc

Issue 1851213002: Remove sandbox on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nacl compile issues Created 4 years, 8 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
« no previous file with comments | « chrome/app/main_dll_loader_win.cc ('k') | chrome/browser/chrome_content_browser_client.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_browser_main_win.h" 5 #include "chrome/browser/chrome_browser_main_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 12 matching lines...) Expand all
23 #include "base/metrics/histogram.h" 23 #include "base/metrics/histogram.h"
24 #include "base/path_service.h" 24 #include "base/path_service.h"
25 #include "base/scoped_native_library.h" 25 #include "base/scoped_native_library.h"
26 #include "base/strings/string_number_conversions.h" 26 #include "base/strings/string_number_conversions.h"
27 #include "base/strings/utf_string_conversions.h" 27 #include "base/strings/utf_string_conversions.h"
28 #include "base/win/registry.h" 28 #include "base/win/registry.h"
29 #include "base/win/win_util.h" 29 #include "base/win/win_util.h"
30 #include "base/win/windows_version.h" 30 #include "base/win/windows_version.h"
31 #include "base/win/wrapped_window_proc.h" 31 #include "base/win/wrapped_window_proc.h"
32 #include "chrome/browser/browser_util_win.h" 32 #include "chrome/browser/browser_util_win.h"
33 #include "chrome/browser/chrome_elf_init_win.h"
34 #include "chrome/browser/first_run/first_run.h" 33 #include "chrome/browser/first_run/first_run.h"
35 #include "chrome/browser/install_verification/win/install_verification.h" 34 #include "chrome/browser/install_verification/win/install_verification.h"
36 #include "chrome/browser/profiles/profile_shortcut_manager.h" 35 #include "chrome/browser/profiles/profile_shortcut_manager.h"
37 #include "chrome/browser/shell_integration.h" 36 #include "chrome/browser/shell_integration.h"
38 #include "chrome/browser/ui/simple_message_box.h" 37 #include "chrome/browser/ui/simple_message_box.h"
39 #include "chrome/browser/ui/uninstall_browser_prompt.h" 38 #include "chrome/browser/ui/uninstall_browser_prompt.h"
40 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" 39 #include "chrome/chrome_watcher/chrome_watcher_main_api.h"
41 #include "chrome/common/chrome_constants.h" 40 #include "chrome/common/chrome_constants.h"
42 #include "chrome/common/chrome_paths.h" 41 #include "chrome/common/chrome_paths.h"
43 #include "chrome/common/chrome_result_codes.h" 42 #include "chrome/common/chrome_result_codes.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void ChromeBrowserMainPartsWin::PostBrowserStart() { 316 void ChromeBrowserMainPartsWin::PostBrowserStart() {
318 ChromeBrowserMainParts::PostBrowserStart(); 317 ChromeBrowserMainParts::PostBrowserStart();
319 318
320 UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice(nullptr)); 319 UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice(nullptr));
321 320
322 // Set up a task to verify installed modules in the current process. 321 // Set up a task to verify installed modules in the current process.
323 content::BrowserThread::PostAfterStartupTask( 322 content::BrowserThread::PostAfterStartupTask(
324 FROM_HERE, content::BrowserThread::GetBlockingPool(), 323 FROM_HERE, content::BrowserThread::GetBlockingPool(),
325 base::Bind(&VerifyInstallation)); 324 base::Bind(&VerifyInstallation));
326 325
327 InitializeChromeElf();
328
329 #if BUILDFLAG(ENABLE_KASKO) 326 #if BUILDFLAG(ENABLE_KASKO)
330 content::BrowserThread::PostDelayedTask( 327 content::BrowserThread::PostDelayedTask(
331 content::BrowserThread::FILE, FROM_HERE, 328 content::BrowserThread::FILE, FROM_HERE,
332 base::Bind(&StartFailedKaskoCrashReportWatcher, 329 base::Bind(&StartFailedKaskoCrashReportWatcher,
333 base::Unretained(&failed_kasko_crash_report_watcher_)), 330 base::Unretained(&failed_kasko_crash_report_watcher_)),
334 base::TimeDelta::FromMinutes(5)); 331 base::TimeDelta::FromMinutes(5));
335 #endif // BUILDFLAG(ENABLE_KASKO) 332 #endif // BUILDFLAG(ENABLE_KASKO)
336 333
337 #if defined(GOOGLE_CHROME_BUILD) 334 #if defined(GOOGLE_CHROME_BUILD)
338 did_run_updater_.reset(new DidRunUpdater); 335 did_run_updater_.reset(new DidRunUpdater);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 if (resource_id) 508 if (resource_id)
512 return l10n_util::GetStringUTF16(resource_id); 509 return l10n_util::GetStringUTF16(resource_id);
513 return base::string16(); 510 return base::string16();
514 } 511 }
515 512
516 // static 513 // static
517 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 514 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
518 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 515 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
519 installer::SetTranslationDelegate(&delegate); 516 installer::SetTranslationDelegate(&delegate);
520 } 517 }
OLDNEW
« no previous file with comments | « chrome/app/main_dll_loader_win.cc ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698