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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 13124003: Fix v2 app launch vector stats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index 8cad76f7af7fc3707027f9264b1c2e3d68177460..64df4dd5a4b5a57f342c95d3fd1fd8e060576c32 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -333,12 +333,14 @@ class OverFlowButton : public views::MenuButton {
void RecordAppLaunch(Profile* profile, GURL url) {
DCHECK(profile->GetExtensionService());
- if (!profile->GetExtensionService()->IsInstalledApp(url))
+ const extensions::Extension* extension =
+ profile->GetExtensionService()->GetInstalledApp(url);
+ if (!extension)
return;
AppLauncherHandler::RecordAppLaunchType(
extension_misc::APP_LAUNCH_BOOKMARK_BAR,
- extensions::Manifest::TYPE_PLATFORM_APP);
+ extension->GetType());
}
int GetNewtabHorizontalPadding() {
« 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