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

Unified Diff: chrome/browser/ui/omnibox/omnibox_view.h

Issue 6982011: Strip leading "javascript:" schemas from text pasted or dropped into the omnibox. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
Index: chrome/browser/ui/omnibox/omnibox_view.h
===================================================================
--- chrome/browser/ui/omnibox/omnibox_view.h (revision 85569)
+++ chrome/browser/ui/omnibox/omnibox_view.h (working copy)
@@ -15,8 +15,11 @@
#include <string>
#include "base/string16.h"
+#include "base/string_util.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "content/common/page_transition_types.h"
+#include "content/common/url_constants.h"
#include "ui/gfx/native_widget_types.h"
#include "webkit/glue/window_open_disposition.h"
@@ -184,6 +187,8 @@
virtual int OnPerformDrop(const views::DropTargetEvent& event) = 0;
#endif
+ static string16 StripJavascriptSchemas(const string16&);
Peter Kasting 2011/05/24 19:34:59 Nit: Go ahead and name the arg here -- dropping th
Cris Neckar 2011/05/24 22:22:35 Done.
+
virtual ~OmniboxView() {}
};

Powered by Google App Engine
This is Rietveld 408576698