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

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"
@@ -25,13 +28,15 @@
class GURL;
class TabContents;
+namespace views {
#if defined(TOOLKIT_VIEWS)
-namespace views {
class DropTargetEvent;
class View;
-} // namespace views
#endif
+string16 StripJavascriptSchemas(const string16&);
Peter Kasting 2011/05/24 00:15:18 ?? Why did you move this here? It belonged in Omn
Cris Neckar 2011/05/24 05:23:33 ?? It was never in OmniboxView. It can't be as I n
Peter Kasting 2011/05/24 17:40:47 I don't understand why that matters. I think this
Cris Neckar 2011/05/24 18:48:11 Done.
+} // namespace views
+
class OmniboxView {
public:
// Used by the automation system for getting at the model from the view.

Powered by Google App Engine
This is Rietveld 408576698