OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shortcut_helper.h" | 5 #include "chrome/browser/android/shortcut_helper.h" |
6 | 6 |
7 #include <jni.h> | 7 #include <jni.h> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 b_value, | 342 b_value, |
343 info.display == content::Manifest::DISPLAY_MODE_STANDALONE, | 343 info.display == content::Manifest::DISPLAY_MODE_STANDALONE, |
344 info.orientation, | 344 info.orientation, |
345 return_to_homescreen); | 345 return_to_homescreen); |
346 } | 346 } |
347 | 347 |
348 void ShortcutHelper::RecordAddToHomescreen() { | 348 void ShortcutHelper::RecordAddToHomescreen() { |
349 // Record that the shortcut has been added, so no banners will be shown | 349 // Record that the shortcut has been added, so no banners will be shown |
350 // for this app. | 350 // for this app. |
351 AppBannerSettingsHelper::RecordBannerEvent( | 351 AppBannerSettingsHelper::RecordBannerEvent( |
352 web_contents(), shortcut_info_.url, shortcut_info_.url.spec(), | 352 web_contents(), web_contents()->GetURL(), shortcut_info_.url.spec(), |
353 AppBannerSettingsHelper::APP_BANNER_EVENT_DID_ADD_TO_HOMESCREEN, | 353 AppBannerSettingsHelper::APP_BANNER_EVENT_DID_ADD_TO_HOMESCREEN, |
354 base::Time::Now()); | 354 base::Time::Now()); |
355 } | 355 } |
OLD | NEW |