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

Side by Side Diff: chrome/chrome_watcher/chrome_watcher_main.cc

Issue 1774443002: Replace template_util.h stuff with C++11 <type_traits> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert unrelated whitespace change Created 4 years, 9 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 | « base/template_util_unittest.cc ('k') | device/hid/hid_service_win.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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 <sddl.h> 6 #include <sddl.h>
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback_helpers.h" 13 #include "base/callback_helpers.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/environment.h" 15 #include "base/environment.h"
16 #include "base/file_version_info.h" 16 #include "base/file_version_info.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/logging_win.h" 18 #include "base/logging_win.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/process/process.h" 21 #include "base/process/process.h"
22 #include "base/run_loop.h" 22 #include "base/run_loop.h"
23 #include "base/sequenced_task_runner.h" 23 #include "base/sequenced_task_runner.h"
24 #include "base/single_thread_task_runner.h" 24 #include "base/single_thread_task_runner.h"
25 #include "base/strings/string16.h" 25 #include "base/strings/string16.h"
26 #include "base/strings/string_number_conversions.h" 26 #include "base/strings/string_number_conversions.h"
27 #include "base/strings/string_piece.h" 27 #include "base/strings/string_piece.h"
28 #include "base/strings/utf_string_conversions.h" 28 #include "base/strings/utf_string_conversions.h"
29 #include "base/synchronization/waitable_event.h" 29 #include "base/synchronization/waitable_event.h"
30 #include "base/template_util.h"
31 #include "base/thread_task_runner_handle.h" 30 #include "base/thread_task_runner_handle.h"
32 #include "base/threading/thread.h" 31 #include "base/threading/thread.h"
33 #include "base/time/time.h" 32 #include "base/time/time.h"
34 #include "base/win/scoped_handle.h" 33 #include "base/win/scoped_handle.h"
35 #include "base/win/win_util.h" 34 #include "base/win/win_util.h"
36 35
37 #include "chrome/chrome_watcher/chrome_watcher_main_api.h" 36 #include "chrome/chrome_watcher/chrome_watcher_main_api.h"
38 #include "chrome/installer/util/util_constants.h" 37 #include "chrome/installer/util/util_constants.h"
39 #include "components/browser_watcher/endsession_watcher_window_win.h" 38 #include "components/browser_watcher/endsession_watcher_window_win.h"
40 #include "components/browser_watcher/exit_code_watcher_win.h" 39 #include "components/browser_watcher/exit_code_watcher_win.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 kasko::api::ShutdownReporter(); 435 kasko::api::ShutdownReporter();
437 #endif // BUILDFLAG(ENABLE_KASKO) 436 #endif // BUILDFLAG(ENABLE_KASKO)
438 437
439 // Wind logging down. 438 // Wind logging down.
440 logging::LogEventProvider::Uninitialize(); 439 logging::LogEventProvider::Uninitialize();
441 440
442 return 0; 441 return 0;
443 } 442 }
444 443
445 static_assert( 444 static_assert(
446 base::is_same<decltype(&WatcherMain), ChromeWatcherMainFunction>::value, 445 std::is_same<decltype(&WatcherMain), ChromeWatcherMainFunction>::value,
447 "WatcherMain() has wrong type"); 446 "WatcherMain() has wrong type");
OLDNEW
« no previous file with comments | « base/template_util_unittest.cc ('k') | device/hid/hid_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698