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

Unified Diff: chrome/browser/history/shortcuts_backend.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
Index: chrome/browser/history/shortcuts_backend.cc
diff --git a/chrome/browser/history/shortcuts_backend.cc b/chrome/browser/history/shortcuts_backend.cc
index d3e100a42302035ecc7e96d8c844b5318644813e..8d8f9363063b5d0fe615e2c6f8eb05abda46f03d 100644
--- a/chrome/browser/history/shortcuts_backend.cc
+++ b/chrome/browser/history/shortcuts_backend.cc
@@ -73,8 +73,9 @@ bool ShortcutsBackend::AddShortcut(
if (no_db_access_)
return true;
return BrowserThread::PostTask(
- BrowserThread::DB, FROM_HERE, base::IgnoreReturn<bool>(
- base::Bind(&ShortcutsDatabase::AddShortcut, db_.get(), shortcut)));
+ BrowserThread::DB, FROM_HERE,
+ base::Bind(base::IgnoreResult(&ShortcutsDatabase::AddShortcut),
+ db_.get(), shortcut));
}
bool ShortcutsBackend::UpdateShortcut(
@@ -92,8 +93,9 @@ bool ShortcutsBackend::UpdateShortcut(
if (no_db_access_)
return true;
return BrowserThread::PostTask(
- BrowserThread::DB, FROM_HERE, base::IgnoreReturn<bool>(
- base::Bind(&ShortcutsDatabase::UpdateShortcut, db_.get(), shortcut)));
+ BrowserThread::DB, FROM_HERE,
+ base::Bind(base::IgnoreResult(&ShortcutsDatabase::UpdateShortcut),
+ db_.get(), shortcut));
}
bool ShortcutsBackend::DeleteShortcutsWithIds(
@@ -113,9 +115,10 @@ bool ShortcutsBackend::DeleteShortcutsWithIds(
if (no_db_access_)
return true;
return BrowserThread::PostTask(
- BrowserThread::DB, FROM_HERE, base::IgnoreReturn<bool>(
- base::Bind(&ShortcutsDatabase::DeleteShortcutsWithIds, db_.get(),
- shortcut_ids)));
+ BrowserThread::DB, FROM_HERE,
+ base::Bind(
+ base::IgnoreResult(&ShortcutsDatabase::DeleteShortcutsWithIds),
+ db_.get(), shortcut_ids));
}
bool ShortcutsBackend::DeleteShortcutsWithUrl(const GURL& shortcut_url) {
@@ -138,9 +141,10 @@ bool ShortcutsBackend::DeleteShortcutsWithUrl(const GURL& shortcut_url) {
if (no_db_access_)
return true;
return BrowserThread::PostTask(
- BrowserThread::DB, FROM_HERE, base::IgnoreReturn<bool>(
- base::Bind(&ShortcutsDatabase::DeleteShortcutsWithUrl, db_.get(),
- shortcut_url.spec())));
+ BrowserThread::DB, FROM_HERE,
+ base::Bind(
+ base::IgnoreResult(&ShortcutsDatabase::DeleteShortcutsWithUrl),
+ db_.get(), shortcut_url.spec()));
}
bool ShortcutsBackend::DeleteAllShortcuts() {
@@ -153,8 +157,10 @@ bool ShortcutsBackend::DeleteAllShortcuts() {
if (no_db_access_)
return true;
return BrowserThread::PostTask(
- BrowserThread::DB, FROM_HERE, base::IgnoreReturn<bool>(
- base::Bind(&ShortcutsDatabase::DeleteAllShortcuts, db_.get())));
+ BrowserThread::DB, FROM_HERE,
+ base::Bind(
+ base::IgnoreResult(&ShortcutsDatabase::DeleteAllShortcuts),
+ db_.get()));
}
void ShortcutsBackend::InitInternal() {
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/password_manager/native_backend_gnome_x_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698