| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ntp_tiles/popular_sites.h" | 5 #include "components/ntp_tiles/popular_sites_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/files/important_file_writer.h" | 13 #include "base/files/important_file_writer.h" |
| 14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
| 15 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 pending_url_ = GetPopularSitesURL(kPopularSitesDefaultCountryCode, | 389 pending_url_ = GetPopularSitesURL(kPopularSitesDefaultCountryCode, |
| 390 kPopularSitesDefaultVersion); | 390 kPopularSitesDefaultVersion); |
| 391 FetchPopularSites(); | 391 FetchPopularSites(); |
| 392 } else { | 392 } else { |
| 393 DLOG(WARNING) << "Download fallback site list failed"; | 393 DLOG(WARNING) << "Download fallback site list failed"; |
| 394 callback_.Run(false); | 394 callback_.Run(false); |
| 395 } | 395 } |
| 396 } | 396 } |
| 397 | 397 |
| 398 } // namespace ntp_tiles | 398 } // namespace ntp_tiles |
| OLD | NEW |