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 "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h" | 5 #include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/location.h" | 7 #include "base/location.h" |
9 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
10 #include "base/task/cancelable_task_tracker.h" | 9 #include "base/task/cancelable_task_tracker.h" |
11 #include "chrome/browser/android/offline_pages/offline_page_utils.h" | 10 #include "chrome/browser/android/offline_pages/offline_page_utils.h" |
12 #include "chrome/browser/android/shortcut_helper.h" | 11 #include "chrome/browser/android/shortcut_helper.h" |
13 #include "chrome/browser/favicon/favicon_service_factory.h" | 12 #include "chrome/browser/favicon/favicon_service_factory.h" |
14 #include "chrome/browser/manifest/manifest_icon_downloader.h" | 13 #include "chrome/browser/manifest/manifest_icon_downloader.h" |
15 #include "chrome/browser/manifest/manifest_icon_selector.h" | 14 #include "chrome/browser/manifest/manifest_icon_selector.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/common/chrome_constants.h" | 16 #include "chrome/common/chrome_constants.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 dom_distiller::url_utils::GetOriginalUrlFromDistillerUrl(actual_url); | 276 dom_distiller::url_utils::GetOriginalUrlFromDistillerUrl(actual_url); |
278 | 277 |
279 // If URL points to an offline content, get original URL. | 278 // If URL points to an offline content, get original URL. |
280 GURL online_url = offline_pages::OfflinePageUtils::GetOnlineURLForOfflineURL( | 279 GURL online_url = offline_pages::OfflinePageUtils::GetOnlineURLForOfflineURL( |
281 web_contents()->GetBrowserContext(), original_url); | 280 web_contents()->GetBrowserContext(), original_url); |
282 if (online_url.is_valid()) | 281 if (online_url.is_valid()) |
283 return online_url; | 282 return online_url; |
284 | 283 |
285 return original_url; | 284 return original_url; |
286 } | 285 } |
OLD | NEW |