Index: ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
diff --git a/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc b/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
index 52aa7c6dce2eda003b2049ed721304a70682eea5..55841c7333d1b671f1a43bff4a1dfdacd8d89878 100644 |
--- a/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
+++ b/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc |
@@ -196,13 +196,14 @@ bool OSExchangeDataProviderAuraX11::GetURLAndTitle( |
std::vector<base::string16> tokens; |
size_t num_tokens = Tokenize(unparsed, ASCIIToUTF16("\n"), &tokens); |
- if (num_tokens >= 2) { |
+ if (num_tokens > 0) { |
+ if (num_tokens > 1) |
+ *title = tokens[1]; |
+ else |
+ *title = string16(); |
+ |
*url = GURL(tokens[0]); |
- *title = tokens[1]; |
return true; |
- } else { |
- NOTREACHED() << "Data that claimed to be a Mozilla URL has " |
- << num_tokens << " tokens instead of 2."; |
} |
} else if (data.GetType() == atom_cache_.GetAtom( |
Clipboard::kMimeTypeURIList)) { |