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

Unified Diff: chrome/browser/android/compositor/layer_title_cache.cc

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years 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 | « base/id_map_unittest.cc ('k') | chrome/browser/android/service_tab_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/layer_title_cache.cc
diff --git a/chrome/browser/android/compositor/layer_title_cache.cc b/chrome/browser/android/compositor/layer_title_cache.cc
index b2162acb2fa23d46867d11b2a0256a62f730e2df..b19fd95bb044afec9a454bfc42b45bf9eb56f995 100644
--- a/chrome/browser/android/compositor/layer_title_cache.cc
+++ b/chrome/browser/android/compositor/layer_title_cache.cc
@@ -8,6 +8,7 @@
#include <memory>
+#include "base/memory/ptr_util.h"
#include "cc/layers/layer.h"
#include "cc/layers/ui_resource_layer.h"
#include "chrome/browser/android/compositor/decoration_title.h"
@@ -68,7 +69,7 @@ void LayerTitleCache::UpdateLayer(JNIEnv* env,
}
} else {
layer_cache_.AddWithID(
- new DecorationTitle(
+ base::MakeUnique<DecorationTitle>(
resource_manager_, title_resource_id, favicon_resource_id,
spinner_resource_id_, spinner_incognito_resource_id_, fade_width_,
favicon_start_padding_, favicon_end_padding_, is_incognito, is_rtl),
« no previous file with comments | « base/id_map_unittest.cc ('k') | chrome/browser/android/service_tab_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698