| 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_dialog_helper.h" | 5 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" |
| 6 | 6 |
| 7 #include <jni.h> | 7 #include <jni.h> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/guid.h" | 11 #include "base/guid.h" |
| 13 #include "base/location.h" | 12 #include "base/location.h" |
| 14 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 16 #include "chrome/browser/android/shortcut_helper.h" | 15 #include "chrome/browser/android/shortcut_helper.h" |
| 17 #include "chrome/browser/banners/app_banner_settings_helper.h" | 16 #include "chrome/browser/banners/app_banner_settings_helper.h" |
| 18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 19 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 20 #include "content/public/common/manifest.h" | 19 #include "content/public/common/manifest.h" |
| 21 #include "jni/AddToHomescreenDialogHelper_jni.h" | 20 #include "jni/AddToHomescreenDialogHelper_jni.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 content::WebContents* web_contents = data_fetcher_->web_contents(); | 142 content::WebContents* web_contents = data_fetcher_->web_contents(); |
| 144 if (!web_contents) | 143 if (!web_contents) |
| 145 return; | 144 return; |
| 146 | 145 |
| 147 AppBannerSettingsHelper::RecordBannerEvent( | 146 AppBannerSettingsHelper::RecordBannerEvent( |
| 148 web_contents, web_contents->GetURL(), | 147 web_contents, web_contents->GetURL(), |
| 149 data_fetcher_->shortcut_info().url.spec(), | 148 data_fetcher_->shortcut_info().url.spec(), |
| 150 AppBannerSettingsHelper::APP_BANNER_EVENT_DID_ADD_TO_HOMESCREEN, | 149 AppBannerSettingsHelper::APP_BANNER_EVENT_DID_ADD_TO_HOMESCREEN, |
| 151 base::Time::Now()); | 150 base::Time::Now()); |
| 152 } | 151 } |
| OLD | NEW |