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

Unified Diff: third_party/WebKit/Source/platform/plugins/PluginListBuilder.h

Issue 2901353002: Move blink::PluginData, blink::PluginInfo, blink::MimeTypeInfo to oilpan heap. (Closed)
Patch Set: nits, remove dead code Created 3 years, 7 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: third_party/WebKit/Source/platform/plugins/PluginListBuilder.h
diff --git a/third_party/WebKit/Source/platform/plugins/PluginListBuilder.h b/third_party/WebKit/Source/platform/plugins/PluginListBuilder.h
index 0e71f79aeeab62e15f876887742a8748e2c09160..2dfcbec6fe6cae5ee89b59f91ced190dc1adbf7a 100644
--- a/third_party/WebKit/Source/platform/plugins/PluginListBuilder.h
+++ b/third_party/WebKit/Source/platform/plugins/PluginListBuilder.h
@@ -39,10 +39,11 @@
namespace blink {
class PluginListBuilder final : public WebPluginListBuilder {
- DISALLOW_NEW();
+ STACK_ALLOCATED();
public:
- PluginListBuilder(Vector<PluginInfo>* results) : results_(results) {}
+ PluginListBuilder(HeapVector<Member<PluginInfo>>* results)
+ : results_(results) {}
// WebPluginListBuilder methods:
void AddPlugin(const WebString& name,
@@ -53,7 +54,7 @@ class PluginListBuilder final : public WebPluginListBuilder {
void AddFileExtensionToLastMediaType(const WebString& extension) override;
private:
- Vector<PluginInfo>* results_;
+ Member<HeapVector<Member<PluginInfo>>> results_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698