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

Side by Side Diff: chrome/browser/extensions/extension_omnibox_api.cc

Issue 8526017: Append parameters to webstore URL to indicate launch source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fixes Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/extension_omnibox_api.h" 5 #include "chrome/browser/extensions/extension_omnibox_api.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram, 284 UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram,
285 extension_misc::APP_LAUNCH_OMNIBOX_APP, 285 extension_misc::APP_LAUNCH_OMNIBOX_APP,
286 extension_misc::APP_LAUNCH_BUCKET_BOUNDARY); 286 extension_misc::APP_LAUNCH_BUCKET_BOUNDARY);
287 287
288 // Look at the preferences to find the right launch container. If no 288 // Look at the preferences to find the right launch container. If no
289 // preference is set, launch as a regular tab. 289 // preference is set, launch as a regular tab.
290 extension_misc::LaunchContainer launch_container = 290 extension_misc::LaunchContainer launch_container =
291 service->extension_prefs()->GetLaunchContainer( 291 service->extension_prefs()->GetLaunchContainer(
292 extension, ExtensionPrefs::LAUNCH_REGULAR); 292 extension, ExtensionPrefs::LAUNCH_REGULAR);
293 293
294 Browser::OpenApplication(profile, extension, launch_container, disposition); 294 Browser::OpenApplication(profile, extension, launch_container, GURL(),
295 disposition);
295 } 296 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management_api.cc ('k') | chrome/browser/resources/ntp4/apps_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698