Index: components/webui_generator/view.h |
diff --git a/components/webui_generator/view.h b/components/webui_generator/view.h |
index b43ad743f067275f010bf5c459796a28291bb837..934fa3da7807aac66ae743c228d2828d6f7d32ce 100644 |
--- a/components/webui_generator/view.h |
+++ b/components/webui_generator/view.h |
@@ -71,7 +71,9 @@ class WUG_EXPORT View { |
bool ready() const { return ready_; } |
- base::ScopedPtrHashMap<std::string, View>& children() { return children_; } |
+ base::ScopedPtrHashMap<std::string, scoped_ptr<View>>& children() { |
+ return children_; |
+ } |
// Adds |child| to the list of children of |this|. Can be called only from |
// CreateAndAddChildren() override. |
@@ -104,7 +106,7 @@ class WUG_EXPORT View { |
bool view_model_ready_; |
bool ready_; |
- base::ScopedPtrHashMap<std::string, View> children_; |
+ base::ScopedPtrHashMap<std::string, scoped_ptr<View>> children_; |
scoped_ptr<ViewModel> view_model_; |
base::WeakPtrFactory<View> weak_factory_; |