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

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

Issue 2858073002: Use constexpr TaskTraits constructor in chrome. (Closed)
Patch Set: 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
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.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 // Chrome session when the computer is restarted after a system update. 1698 // Chrome session when the computer is restarted after a system update.
1699 // This could be run as late as WM_QUERYENDSESSION for system update reboots, 1699 // This could be run as late as WM_QUERYENDSESSION for system update reboots,
1700 // but should run on startup if extended to handle crashes/hangs/patches. 1700 // but should run on startup if extended to handle crashes/hangs/patches.
1701 // Also, better to run once here than once for each HWND's WM_QUERYENDSESSION. 1701 // Also, better to run once here than once for each HWND's WM_QUERYENDSESSION.
1702 ChromeBrowserMainPartsWin::RegisterApplicationRestart(parsed_command_line()); 1702 ChromeBrowserMainPartsWin::RegisterApplicationRestart(parsed_command_line());
1703 1703
1704 // Verify that the profile is not on a network share and if so prepare to show 1704 // Verify that the profile is not on a network share and if so prepare to show
1705 // notification to the user. 1705 // notification to the user.
1706 if (NetworkProfileBubble::ShouldCheckNetworkProfile(profile_)) { 1706 if (NetworkProfileBubble::ShouldCheckNetworkProfile(profile_)) {
1707 base::PostTaskWithTraits( 1707 base::PostTaskWithTraits(
1708 FROM_HERE, base::TaskTraits().MayBlock(), 1708 FROM_HERE, {base::MayBlock()},
1709 base::Bind(&NetworkProfileBubble::CheckNetworkProfile, 1709 base::Bind(&NetworkProfileBubble::CheckNetworkProfile,
1710 profile_->GetPath())); 1710 profile_->GetPath()));
1711 } 1711 }
1712 #endif // defined(OS_WIN) 1712 #endif // defined(OS_WIN)
1713 1713
1714 #if BUILDFLAG(ENABLE_RLZ) && !defined(OS_CHROMEOS) 1714 #if BUILDFLAG(ENABLE_RLZ) && !defined(OS_CHROMEOS)
1715 // Init the RLZ library. This just binds the dll and schedules a task on the 1715 // Init the RLZ library. This just binds the dll and schedules a task on the
1716 // file thread to be run sometime later. If this is the first run we record 1716 // file thread to be run sometime later. If this is the first run we record
1717 // the installation event. 1717 // the installation event.
1718 int ping_delay = 1718 int ping_delay =
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 chromeos::CrosSettings::Shutdown(); 2076 chromeos::CrosSettings::Shutdown();
2077 #endif // defined(OS_CHROMEOS) 2077 #endif // defined(OS_CHROMEOS)
2078 #endif // defined(OS_ANDROID) 2078 #endif // defined(OS_ANDROID)
2079 } 2079 }
2080 2080
2081 // Public members: 2081 // Public members:
2082 2082
2083 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 2083 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
2084 chrome_extra_parts_.push_back(parts); 2084 chrome_extra_parts_.push_back(parts);
2085 } 2085 }
OLDNEW
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_browsertest.cc ('k') | chrome/browser/chrome_browser_main_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698