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

Unified Diff: chrome/browser/history/android/android_provider_backend.cc

Issue 640353003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 6 years, 2 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/download/save_page_browsertest.cc ('k') | chrome/browser/history/expire_history_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/android/android_provider_backend.cc
diff --git a/chrome/browser/history/android/android_provider_backend.cc b/chrome/browser/history/android/android_provider_backend.cc
index bfb9019924ab14e7ab46a0600f75846655748940..894b75fc3ca50564a769e6c170c2986e9ee531f2 100644
--- a/chrome/browser/history/android/android_provider_backend.cc
+++ b/chrome/browser/history/android/android_provider_backend.cc
@@ -352,7 +352,7 @@ bool AndroidProviderBackend::UpdateHistoryAndBookmarks(
}
if (!modified->changed_urls.empty()) {
- scoped_ptr<HistoryDetails> details = modified.PassAs<HistoryDetails>();
+ scoped_ptr<HistoryDetails> details = modified.Pass();
notifications->push_back(
base::Bind(&HistoryBackend::Delegate::BroadcastNotifications,
base::Unretained(delegate_),
@@ -403,7 +403,7 @@ AndroidURLID AndroidProviderBackend::InsertHistoryAndBookmark(
favicon->insert(url_row.url());
}
- scoped_ptr<HistoryDetails> details = modified.PassAs<HistoryDetails>();
+ scoped_ptr<HistoryDetails> details = modified.Pass();
notifications->push_back(
base::Bind(&HistoryBackend::Delegate::BroadcastNotifications,
base::Unretained(delegate_),
@@ -1066,7 +1066,7 @@ bool AndroidProviderBackend::SimulateUpdateURL(
modified->changed_urls.push_back(new_url_row);
- scoped_ptr<HistoryDetails> details = deleted_details.PassAs<HistoryDetails>();
+ scoped_ptr<HistoryDetails> details = deleted_details.Pass();
notifications->push_back(
base::Bind(&HistoryBackend::Delegate::BroadcastNotifications,
base::Unretained(delegate_),
@@ -1077,7 +1077,7 @@ bool AndroidProviderBackend::SimulateUpdateURL(
base::Unretained(delegate_),
base::Passed(&favicons)));
}
- scoped_ptr<HistoryDetails> other_details = modified.PassAs<HistoryDetails>();
+ scoped_ptr<HistoryDetails> other_details = modified.Pass();
notifications->push_back(
base::Bind(&HistoryBackend::Delegate::BroadcastNotifications,
base::Unretained(delegate_),
@@ -1146,7 +1146,7 @@ bool AndroidProviderBackend::DeleteHistoryInternal(
return false;
}
- scoped_ptr<HistoryDetails> details = deleted_details.PassAs<HistoryDetails>();
+ scoped_ptr<HistoryDetails> details = deleted_details.Pass();
notifications->push_back(
base::Bind(&HistoryBackend::Delegate::BroadcastNotifications,
base::Unretained(delegate_),
« no previous file with comments | « chrome/browser/download/save_page_browsertest.cc ('k') | chrome/browser/history/expire_history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698