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

Side by Side Diff: components/omnibox/browser/suggestion_answer.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/suggestion_answer.h ('k') | components/omnibox/browser/test_scheme_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698