Chromium Code Reviews| Index: chrome/browser/android/most_visited_sites_unittest.cc |
| diff --git a/chrome/browser/android/most_visited_sites_unittest.cc b/chrome/browser/android/most_visited_sites_unittest.cc |
| index 740e687d39e79f87162bc1da77d1c0e2dd9a0dac..a3a2664df8fcd822a6a59a412df67aa196b3f86c 100644 |
| --- a/chrome/browser/android/most_visited_sites_unittest.cc |
| +++ b/chrome/browser/android/most_visited_sites_unittest.cc |
| @@ -81,11 +81,14 @@ class MostVisitedSitesTest : public testing::Test { |
| const TitleURL& title_url, |
| bool is_personal, |
| bool whitelist) { |
| - return make_scoped_ptr(new MostVisitedSites::Suggestion( |
| - title_url.title, title_url.url, |
| - whitelist ? MostVisitedSites::WHITELIST |
| - : (is_personal ? MostVisitedSites::TOP_SITES |
| - : MostVisitedSites::POPULAR))); |
| + scoped_ptr<MostVisitedSites::Suggestion> suggestion = |
| + make_scoped_ptr(new MostVisitedSites::Suggestion()); |
| + suggestion->title = title_url.title; |
| + suggestion->url = GURL(title_url.url); |
| + suggestion->source = whitelist ? MostVisitedSites::WHITELIST |
| + : (is_personal ? MostVisitedSites::TOP_SITES |
| + : MostVisitedSites::POPULAR); |
| + return std::move(suggestion); |
|
Marc Treib
2016/03/17 09:19:44
nit: std::move shouldn't be required here.
atanasova
2016/03/17 10:18:03
Done.
|
| } |
| }; |