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

Unified Diff: chrome/browser/history/history_backend_unittest.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/history/history_backend.cc ('k') | chrome/browser/history/web_history_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_backend_unittest.cc
diff --git a/chrome/browser/history/history_backend_unittest.cc b/chrome/browser/history/history_backend_unittest.cc
index 8244eb169d100003847da92be252768a14509f0b..582a3440a07a863882d8523135aa9373d44fc251 100644
--- a/chrome/browser/history/history_backend_unittest.cc
+++ b/chrome/browser/history/history_backend_unittest.cc
@@ -436,17 +436,17 @@ class InMemoryHistoryBackendTest : public HistoryBackendTestBase {
if (type == chrome::NOTIFICATION_HISTORY_URLS_MODIFIED) {
scoped_ptr<URLsModifiedDetails> details(new URLsModifiedDetails());
details->changed_urls.swap(rows);
- BroadcastNotifications(type, details.PassAs<HistoryDetails>());
+ BroadcastNotifications(type, details.Pass());
} else if (type == chrome::NOTIFICATION_HISTORY_URL_VISITED) {
for (URLRows::const_iterator it = rows.begin(); it != rows.end(); ++it) {
scoped_ptr<URLVisitedDetails> details(new URLVisitedDetails());
details->row = *it;
- BroadcastNotifications(type, details.PassAs<HistoryDetails>());
+ BroadcastNotifications(type, details.Pass());
}
} else if (type == chrome::NOTIFICATION_HISTORY_URLS_DELETED) {
scoped_ptr<URLsDeletedDetails> details(new URLsDeletedDetails());
details->rows = rows;
- BroadcastNotifications(type, details.PassAs<HistoryDetails>());
+ BroadcastNotifications(type, details.Pass());
} else {
NOTREACHED();
}
@@ -3148,7 +3148,7 @@ TEST_F(InMemoryHistoryBackendTest, OnURLsDeletedEnMasse) {
scoped_ptr<URLsDeletedDetails> details(new URLsDeletedDetails());
details->all_history = true;
BroadcastNotifications(chrome::NOTIFICATION_HISTORY_URLS_DELETED,
- details.PassAs<HistoryDetails>());
+ details.Pass());
// Expect that everything goes away.
EXPECT_EQ(0, mem_backend_->db()->GetRowForURL(row1.url(), NULL));
« no previous file with comments | « chrome/browser/history/history_backend.cc ('k') | chrome/browser/history/web_history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698