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

Unified Diff: chrome/browser/ui/browser_init.cc

Issue 9111032: Change over IgnoreReturn to IgnoreResult. remove IgnoreReturn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix it for realz Created 8 years, 11 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 | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/test/base/view_event_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_init.cc
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
index 123b07ee9c06fa00fb87e1d36e2966045f53f0c0..364b070328bd1467ebc8325a3d37e9b1d894f669 100644
--- a/chrome/browser/ui/browser_init.cc
+++ b/chrome/browser/ui/browser_init.cc
@@ -333,8 +333,7 @@ bool DefaultBrowserInfoBarDelegate::Accept() {
BrowserThread::PostTask(
BrowserThread::FILE,
FROM_HERE,
- base::IgnoreReturn<bool>(
- base::Bind(&ShellIntegration::SetAsDefaultBrowser)));
+ base::Bind(base::IgnoreResult(&ShellIntegration::SetAsDefaultBrowser)));
return true;
}
@@ -1449,16 +1448,16 @@ void BrowserInit::LaunchWithProfile::CheckDefaultBrowser(Profile* profile) {
prefs::kDefaultBrowserSettingEnabled)) {
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- base::IgnoreReturn<bool>(
- base::Bind(&ShellIntegration::SetAsDefaultBrowser)));
+ base::Bind(
+ base::IgnoreResult(&ShellIntegration::SetAsDefaultBrowser)));
} else {
// TODO(pastarmovj): We can't really do anything meaningful here yet but
// just prevent showing the infobar.
}
return;
}
- BrowserThread::PostTask(
- BrowserThread::FILE, FROM_HERE, base::Bind(&CheckDefaultBrowserCallback));
+ BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
+ base::Bind(&CheckDefaultBrowserCallback));
}
bool BrowserInit::LaunchWithProfile::CheckIfAutoLaunched(Profile* profile) {
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/test/base/view_event_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698