diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 20:24:12 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 20:24:12 +0000 |
commit | cdb4782bf9c5d59fb23eca751aafaea3fb93d46f (patch) | |
tree | fa66d986e7237ef7b12decc60fa7d6334a176f83 /chrome/browser/autocomplete | |
parent | 2b55f08bd457f3d0feba66093aed584e6817ce9e (diff) | |
download | chromium_src-cdb4782bf9c5d59fb23eca751aafaea3fb93d46f.zip chromium_src-cdb4782bf9c5d59fb23eca751aafaea3fb93d46f.tar.gz chromium_src-cdb4782bf9c5d59fb23eca751aafaea3fb93d46f.tar.bz2 |
Fixes regression introduced in dnd refactoring. I removed a check for
the URL that I shouldn't have (it won't be needed at some point, but it
is now).
BUG=21198
TEST=Select a URL and drag to the tab strip. Make sure you get the
drop target and you can drop the text to create a new tab. Do the
same with www.google.com, you shouldn't get a drop target.
Review URL: http://codereview.chromium.org/202010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25653 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h index 1264a32..d56777a 100644 --- a/chrome/browser/autocomplete/autocomplete_edit.h +++ b/chrome/browser/autocomplete/autocomplete_edit.h @@ -166,6 +166,9 @@ class AutocompleteEditModel : public NotificationObserver { // Navigates to the destination last supplied to CanPasteAndGo. void PasteAndGo(); + // Returns the url set by way of CanPasteAndGo. + const GURL& paste_and_go_url() const { return paste_and_go_url_; } + // Returns true if this is a paste-and-search rather than paste-and-go (or // nothing). bool is_paste_and_search() const { |