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_manager.h" | 5 #include "chrome/browser/android/webapps/add_to_homescreen_manager.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/sequenced_worker_pool.h" | |
15 #include "chrome/browser/android/banners/app_banner_infobar_delegate_android.h" | 14 #include "chrome/browser/android/banners/app_banner_infobar_delegate_android.h" |
16 #include "chrome/browser/android/shortcut_helper.h" | 15 #include "chrome/browser/android/shortcut_helper.h" |
17 #include "chrome/browser/android/webapk/chrome_webapk_host.h" | 16 #include "chrome/browser/android/webapk/chrome_webapk_host.h" |
18 #include "chrome/browser/android/webapk/webapk_install_service.h" | 17 #include "chrome/browser/android/webapk/webapk_install_service.h" |
19 #include "chrome/browser/android/webapk/webapk_metrics.h" | 18 #include "chrome/browser/android/webapk/webapk_metrics.h" |
20 #include "chrome/browser/banners/app_banner_settings_helper.h" | 19 #include "chrome/browser/banners/app_banner_settings_helper.h" |
21 #include "chrome/browser/installable/installable_manager.h" | 20 #include "chrome/browser/installable/installable_manager.h" |
22 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
23 #include "content/public/browser/render_frame_host.h" | 22 #include "content/public/browser/render_frame_host.h" |
24 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 199 |
201 SkBitmap AddToHomescreenManager::FinalizeLauncherIconInBackground( | 200 SkBitmap AddToHomescreenManager::FinalizeLauncherIconInBackground( |
202 const SkBitmap& bitmap, | 201 const SkBitmap& bitmap, |
203 const GURL& url, | 202 const GURL& url, |
204 bool* is_generated) { | 203 bool* is_generated) { |
205 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); | 204 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); |
206 | 205 |
207 return ShortcutHelper::FinalizeLauncherIconInBackground(bitmap, url, | 206 return ShortcutHelper::FinalizeLauncherIconInBackground(bitmap, url, |
208 is_generated); | 207 is_generated); |
209 } | 208 } |
OLD | NEW |