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

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: Use NullableString16 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') | no next file with comments »
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..4e9412b35b547a6f8f9d5746bc3a99335d80295d 100644
--- a/content/test/mock_webclipboard_impl.h
+++ b/content/test/mock_webclipboard_impl.h
@@ -12,6 +12,7 @@
#include <map>
+#include "base/strings/nullable_string16.h"
#include "base/strings/string16.h"
#include "third_party/WebKit/public/platform/WebClipboard.h"
#include "third_party/WebKit/public/platform/WebDragData.h"
@@ -52,8 +53,8 @@ class MockWebClipboardImpl : public blink::WebClipboard {
private:
void clear();
- blink::WebString m_plainText;
- blink::WebString m_htmlText;
+ base::NullableString16 m_plainText;
+ base::NullableString16 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698