Index: components/spellcheck/browser/spellcheck_action.h |
diff --git a/components/spellcheck/browser/spellcheck_action.h b/components/spellcheck/browser/spellcheck_action.h |
index 5ed80f2cf7353508480105e4b9e5007ca2b3cd2c..2320da671f9a2f547fce426614baab13ea3ee1f8 100644 |
--- a/components/spellcheck/browser/spellcheck_action.h |
+++ b/components/spellcheck/browser/spellcheck_action.h |
@@ -5,6 +5,8 @@ |
#ifndef COMPONENTS_SPELLCHECK_BROWSER_SPELLCHECK_ACTION_H_ |
#define COMPONENTS_SPELLCHECK_BROWSER_SPELLCHECK_ACTION_H_ |
+#include <memory> |
+ |
#include "base/strings/string16.h" |
namespace base { |
@@ -58,9 +60,8 @@ class SpellcheckAction { |
// nothing. |
void Finalize(); |
- // Serializes the data in this object into a dictionary value. The caller owns |
- // the result. |
- base::DictionaryValue* Serialize() const; |
+ // Serializes the data in this object into a dictionary value. |
+ std::unique_ptr<base::DictionaryValue> Serialize() const; |
void set_type(SpellcheckActionType type) { type_ = type; } |
void set_index(int index) { index_ = index; } |