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

Unified Diff: cc/resources/tile_manager_unittest.cc

Issue 502203003: Remove implicit conversions from scoped_refptr to T* in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to use .get() instead of rewriting local variable Created 6 years, 4 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 | « cc/resources/tile_manager.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager_unittest.cc
diff --git a/cc/resources/tile_manager_unittest.cc b/cc/resources/tile_manager_unittest.cc
index 030f8ab77ed5c787bfd458b9566bb99244040272..b85c286fd37c1327608860958aea19cf21bb120a 100644
--- a/cc/resources/tile_manager_unittest.cc
+++ b/cc/resources/tile_manager_unittest.cc
@@ -126,7 +126,7 @@ class TileManagerTest : public testing::TestWithParam<bool>,
void ReleaseTiles(TileVector* tiles) {
for (TileVector::iterator it = tiles->begin(); it != tiles->end(); it++) {
- Tile* tile = *it;
+ Tile* tile = it->get();
tile->SetPriority(ACTIVE_TREE, TilePriority());
tile->SetPriority(PENDING_TREE, TilePriority());
}
@@ -138,7 +138,7 @@ class TileManagerTest : public testing::TestWithParam<bool>,
int has_memory_count = 0;
for (TileVector::const_iterator it = tiles.begin(); it != tiles.end();
++it) {
- if (tile_manager_->HasBeenAssignedMemory(*it))
+ if (tile_manager_->HasBeenAssignedMemory(it->get()))
++has_memory_count;
}
return has_memory_count;
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698