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

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

Issue 2033093003: [Notification] Make HTML5 Notification use ActionCenter on Windows 10, behind Flags. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and merge. Created 3 years, 7 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/chrome_exe_main_app_win.cc ('k') | chrome/browser/BUILD.gn » ('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 <malloc.h> 6 #include <malloc.h>
7 #include <shellscalingapi.h> 7 #include <shellscalingapi.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <tchar.h> 9 #include <tchar.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <string> 12 #include <string>
13 13
14 #include "base/at_exit.h" 14 #include "base/at_exit.h"
15 #include "base/bind.h"
15 #include "base/command_line.h" 16 #include "base/command_line.h"
16 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
17 #include "base/logging.h" 18 #include "base/logging.h"
18 #include "base/path_service.h" 19 #include "base/path_service.h"
19 #include "base/strings/string16.h" 20 #include "base/strings/string16.h"
20 #include "base/strings/string_split.h" 21 #include "base/strings/string_split.h"
21 #include "base/strings/string_util.h" 22 #include "base/strings/string_util.h"
22 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "base/threading/thread.h"
23 #include "base/time/time.h" 25 #include "base/time/time.h"
24 #include "base/win/registry.h" 26 #include "base/win/registry.h"
25 #include "base/win/windows_version.h" 27 #include "base/win/windows_version.h"
28 #include "chrome/app/chrome_exe_main_app_win.h"
26 #include "chrome/app/main_dll_loader_win.h" 29 #include "chrome/app/main_dll_loader_win.h"
27 #include "chrome/browser/policy/policy_path_parser.h" 30 #include "chrome/browser/policy/policy_path_parser.h"
28 #include "chrome/browser/win/chrome_process_finder.h" 31 #include "chrome/browser/win/chrome_process_finder.h"
29 #include "chrome/common/chrome_paths_internal.h" 32 #include "chrome/common/chrome_paths_internal.h"
30 #include "chrome/common/chrome_switches.h" 33 #include "chrome/common/chrome_switches.h"
31 #include "chrome/install_static/initialize_from_primary_module.h" 34 #include "chrome/install_static/initialize_from_primary_module.h"
32 #include "chrome/install_static/install_util.h" 35 #include "chrome/install_static/install_util.h"
33 #include "chrome_elf/chrome_elf_main.h" 36 #include "chrome_elf/chrome_elf_main.h"
34 #include "components/crash/content/app/crash_switches.h" 37 #include "components/crash/content/app/crash_switches.h"
35 #include "components/crash/content/app/crashpad.h" 38 #include "components/crash/content/app/crashpad.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // The exit manager is in charge of calling the dtors of singletons. 261 // The exit manager is in charge of calling the dtors of singletons.
259 base::AtExitManager exit_manager; 262 base::AtExitManager exit_manager;
260 263
261 EnableHighDPISupport(); 264 EnableHighDPISupport();
262 265
263 if (AttemptFastNotify(*command_line)) 266 if (AttemptFastNotify(*command_line))
264 return 0; 267 return 0;
265 268
266 RemoveAppCompatFlagsEntry(); 269 RemoveAppCompatFlagsEntry();
267 270
271 base::Thread com_thread_("COM Thread for Toast");
272 if (process_type.empty()) {
273 if (base::win::GetVersion() >= base::win::VERSION_WIN10_R1) {
274 com_thread_.init_com_with_mta(true);
275 com_thread_.Start();
276 com_thread_.task_runner()->PostTask(
277 FROM_HERE, base::Bind(&PrepareChromeForWindows10));
278 }
279 }
280
268 // Load and launch the chrome dll. *Everything* happens inside. 281 // Load and launch the chrome dll. *Everything* happens inside.
269 VLOG(1) << "About to load main DLL."; 282 VLOG(1) << "About to load main DLL.";
270 MainDllLoader* loader = MakeMainDllLoader(); 283 MainDllLoader* loader = MakeMainDllLoader();
271 int rc = loader->Launch(instance, exe_entry_point_ticks); 284 int rc = loader->Launch(instance, exe_entry_point_ticks);
272 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded(); 285 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded();
273 delete loader; 286 delete loader;
274 return rc; 287 return rc;
275 } 288 }
OLDNEW
« no previous file with comments | « chrome/app/chrome_exe_main_app_win.cc ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698