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

Unified Diff: components/omnibox/autocomplete_match.h

Issue 669573005: Add a class to parse answer json. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: components/omnibox/autocomplete_match.h
diff --git a/components/omnibox/autocomplete_match.h b/components/omnibox/autocomplete_match.h
index cb1f6e4258f80a00e0c0b861ca15e0ecfdeef475..c4c854d16ec87f3c8f893ae2f908d796dc031422 100644
--- a/components/omnibox/autocomplete_match.h
+++ b/components/omnibox/autocomplete_match.h
@@ -16,6 +16,7 @@
#include "url/gurl.h"
class AutocompleteProvider;
+class SuggestionAnswer;
class TemplateURL;
class TemplateURLService;
@@ -320,6 +321,7 @@ struct AutocompleteMatch {
// A rich-format version of the display for the dropdown.
base::string16 answer_contents;
groby-ooo-7-16 2014/10/21 00:35:54 Since we make answer optional, I think we should p
Justin Donnelly 2014/10/21 21:43:54 Agreed. Once I update Clank to use the new type,
base::string16 answer_type;
+ scoped_ptr<SuggestionAnswer> answer;
// The transition type to use when the user opens this match. By default
// this is TYPED. Providers whose matches do not look like URLs should set

Powered by Google App Engine
This is Rietveld 408576698