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

Unified Diff: content/test/mock_webclipboard_impl.h

Issue 135853010: Fix the WebStrings leak in MockWebClipboardImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copy string Created 6 years, 11 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
« no previous file with comments | « no previous file | content/test/mock_webclipboard_impl.cc » ('j') | content/test/mock_webclipboard_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_webclipboard_impl.h
diff --git a/content/test/mock_webclipboard_impl.h b/content/test/mock_webclipboard_impl.h
index 7c85ec47b2ebad36fb2d36ee67d9fcc3b55afb11..a4b70f3ec9e915bd8b673b8cf157ae2837052c73 100644
--- a/content/test/mock_webclipboard_impl.h
+++ b/content/test/mock_webclipboard_impl.h
@@ -11,6 +11,7 @@
#define CONTENT_TEST_MOCK_WEBCLIPBOARD_IMPL_H_
#include <map>
+#include <string>
#include "base/strings/string16.h"
#include "third_party/WebKit/public/platform/WebClipboard.h"
@@ -52,8 +53,8 @@ class MockWebClipboardImpl : public blink::WebClipboard {
private:
void clear();
- blink::WebString m_plainText;
- blink::WebString m_htmlText;
+ std::string m_plainText;
+ std::string m_htmlText;
blink::WebImage m_image;
std::map<base::string16, base::string16> m_customData;
bool m_writeSmartPaste;
« no previous file with comments | « no previous file | content/test/mock_webclipboard_impl.cc » ('j') | content/test/mock_webclipboard_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698