| OLD | NEW |
| 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 "chrome/browser/android/banners/app_banner_manager.h" | 5 #include "chrome/browser/android/banners/app_banner_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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "chrome/browser/android/banners/app_banner_metrics_ids.h" | 12 #include "chrome/browser/android/banners/app_banner_metrics_ids.h" |
| 13 #include "chrome/browser/android/banners/app_banner_settings_helper.h" | |
| 14 #include "chrome/browser/android/banners/app_banner_utilities.h" | 13 #include "chrome/browser/android/banners/app_banner_utilities.h" |
| 14 #include "chrome/browser/banners/app_banner_settings_helper.h" |
| 15 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h" | 15 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/common/render_messages.h" | 19 #include "chrome/common/render_messages.h" |
| 20 #include "content/public/browser/android/content_view_core.h" | 20 #include "content/public/browser/android/content_view_core.h" |
| 21 #include "content/public/browser/navigation_details.h" | 21 #include "content/public/browser/navigation_details.h" |
| 22 #include "content/public/browser/render_frame_host.h" | 22 #include "content/public/browser/render_frame_host.h" |
| 23 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
| 24 #include "content/public/common/frame_navigate_params.h" | 24 #include "content/public/common/frame_navigate_params.h" |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 213 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 214 switches::kEnableAppInstallAlerts); | 214 switches::kEnableAppInstallAlerts); |
| 215 } | 215 } |
| 216 | 216 |
| 217 // Register native methods | 217 // Register native methods |
| 218 bool RegisterAppBannerManager(JNIEnv* env) { | 218 bool RegisterAppBannerManager(JNIEnv* env) { |
| 219 return RegisterNativesImpl(env); | 219 return RegisterNativesImpl(env); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace banners | 222 } // namespace banners |
| OLD | NEW |