| Index: chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc (revision 80563)
|
| +++ chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc (working copy)
|
| @@ -476,9 +476,14 @@
|
| // OpenURL() may close the popup, which will clear the result set and, by
|
| // extension, |match| and its contents. So copy the relevant strings out to
|
| // make sure they stay alive until the call completes.
|
| + string16 keyword;
|
| + bool is_keyword_hint = false;
|
| +
|
| + if (match.keyword.get()) {
|
| + keyword = match.keyword->text;
|
| + is_keyword_hint = match.keyword->is_keyword_hint;
|
| + }
|
| const GURL url(match.destination_url);
|
| - string16 keyword;
|
| - const bool is_keyword_hint = model_->GetKeywordForMatch(match, &keyword);
|
| edit_view_->OpenURL(url, disposition, match.transition, GURL(), line,
|
| is_keyword_hint ? string16() : keyword);
|
| }
|
|
|