OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/omnibox/browser/suggestion_answer.h" | 5 #include "components/omnibox/browser/suggestion_answer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
8 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "base/values.h" | 12 #include "base/values.h" |
11 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
12 #include "url/url_constants.h" | 14 #include "url/url_constants.h" |
13 | 15 |
14 namespace { | 16 namespace { |
15 | 17 |
16 // All of these are defined here (even though most are only used once each) so | 18 // All of these are defined here (even though most are only used once each) so |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 first_line_.Equals(answer.first_line_) && | 206 first_line_.Equals(answer.first_line_) && |
205 second_line_.Equals(answer.second_line_); | 207 second_line_.Equals(answer.second_line_); |
206 } | 208 } |
207 | 209 |
208 void SuggestionAnswer::AddImageURLsTo(std::vector<GURL>* urls) const { | 210 void SuggestionAnswer::AddImageURLsTo(std::vector<GURL>* urls) const { |
209 if (first_line_.image_url().is_valid()) | 211 if (first_line_.image_url().is_valid()) |
210 urls->push_back(first_line_.image_url()); | 212 urls->push_back(first_line_.image_url()); |
211 if (second_line_.image_url().is_valid()) | 213 if (second_line_.image_url().is_valid()) |
212 urls->push_back(second_line_.image_url()); | 214 urls->push_back(second_line_.image_url()); |
213 } | 215 } |
OLD | NEW |