| Index: chrome/browser/ui/views/toolbar/home_button.cc
|
| diff --git a/chrome/browser/ui/views/toolbar/home_button.cc b/chrome/browser/ui/views/toolbar/home_button.cc
|
| index 2a2e682674f52ad1dc19991b879a03222c80a334..2972a17b3302ec70ae3e8197caf19405fd714a31 100644
|
| --- a/chrome/browser/ui/views/toolbar/home_button.cc
|
| +++ b/chrome/browser/ui/views/toolbar/home_button.cc
|
| @@ -159,7 +159,8 @@ bool HomeButton::GetDropFormats(
|
| }
|
|
|
| bool HomeButton::CanDrop(const OSExchangeData& data) {
|
| - return data.HasURL(ui::OSExchangeData::CONVERT_FILENAMES);
|
| + return data.HasURL(ui::OSExchangeData::CONVERT_FILENAMES,
|
| + ui::OSExchangeData::PARSE_TEXT_AS_URL);
|
| }
|
|
|
| int HomeButton::OnDragUpdated(const ui::DropTargetEvent& event) {
|
| @@ -169,8 +170,9 @@ int HomeButton::OnDragUpdated(const ui::DropTargetEvent& event) {
|
| int HomeButton::OnPerformDrop(const ui::DropTargetEvent& event) {
|
| GURL new_homepage_url;
|
| base::string16 title;
|
| - if (event.data().GetURLAndTitle(
|
| - ui::OSExchangeData::CONVERT_FILENAMES, &new_homepage_url, &title) &&
|
| + if (event.data().GetURLAndTitle(ui::OSExchangeData::CONVERT_FILENAMES,
|
| + ui::OSExchangeData::PARSE_TEXT_AS_URL,
|
| + &new_homepage_url, &title) &&
|
| new_homepage_url.is_valid()) {
|
| PrefService* prefs = browser_->profile()->GetPrefs();
|
| bool old_is_ntp = prefs->GetBoolean(prefs::kHomePageIsNewTabPage);
|
|
|