Index: components/spellcheck/renderer/spellcheck_provider_test.cc |
diff --git a/components/spellcheck/renderer/spellcheck_provider_test.cc b/components/spellcheck/renderer/spellcheck_provider_test.cc |
index 9f86045a0a72236d537b9a3a64f836d5912ef7d8..c8b27ee3ca05b197e92cc80f51037c4e0c6a1d7c 100644 |
--- a/components/spellcheck/renderer/spellcheck_provider_test.cc |
+++ b/components/spellcheck/renderer/spellcheck_provider_test.cc |
@@ -4,6 +4,7 @@ |
#include "components/spellcheck/renderer/spellcheck_provider_test.h" |
+#include "base/memory/ptr_util.h" |
#include "base/stl_util.h" |
#include "components/spellcheck/common/spellcheck_marker.h" |
#include "components/spellcheck/common/spellcheck_messages.h" |
@@ -62,7 +63,7 @@ bool TestingSpellCheckProvider::Send(IPC::Message* message) { |
} |
#endif |
- messages_.push_back(message); |
+ messages_.push_back(base::WrapUnique<IPC::Message>(message)); |
groby-ooo-7-16
2017/01/26 17:40:47
This makes me queasy, because the use of unique_pt
ke.he
2017/01/27 03:15:40
In this testing class, the Send() function doesn't
groby-ooo-7-16
2017/02/02 16:05:44
AIUI, the Send() function always takes ownership -
ke.he
2017/02/03 00:58:57
Thanks:)
My understanding is: "the send() function
|
return true; |
} |