Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chrome/browser/android/shortcut_helper.cc

Issue 1065153002: Record add to homescreen events with URL from the owning web contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698