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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2814793005: Mark the network bubble task as MayBlock to prevent it from crashing the browser. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/network_profile_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index e8c36382cdacd55e43a5081012ba22b1d1d125e3..ce20f9849f6c0886f864c630803ce9af346f5585 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -35,6 +35,7 @@
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/sys_info.h"
+#include "base/task_scheduler/post_task.h"
#include "base/threading/platform_thread.h"
#include "base/time/default_tick_clock.h"
#include "base/time/time.h"
@@ -1706,7 +1707,8 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
// Verify that the profile is not on a network share and if so prepare to show
// notification to the user.
if (NetworkProfileBubble::ShouldCheckNetworkProfile(profile_)) {
- BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
+ base::PostTaskWithTraits(
+ FROM_HERE, base::TaskTraits().MayBlock(),
base::Bind(&NetworkProfileBubble::CheckNetworkProfile,
profile_->GetPath()));
}
« no previous file with comments | « no previous file | chrome/browser/ui/network_profile_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698