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

Side by Side Diff: chrome/browser/extensions/api/omnibox/omnibox_api.cc

Issue 10332071: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Browser cleanup Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/api/omnibox/omnibox_api.h" 5 #include "chrome/browser/extensions/api/omnibox/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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 AppLauncherHandler::RecordAppLaunchType( 314 AppLauncherHandler::RecordAppLaunchType(
315 extension_misc::APP_LAUNCH_OMNIBOX_APP); 315 extension_misc::APP_LAUNCH_OMNIBOX_APP);
316 316
317 // Look at the preferences to find the right launch container. If no 317 // Look at the preferences to find the right launch container. If no
318 // preference is set, launch as a regular tab. 318 // preference is set, launch as a regular tab.
319 extension_misc::LaunchContainer launch_container = 319 extension_misc::LaunchContainer launch_container =
320 service->extension_prefs()->GetLaunchContainer( 320 service->extension_prefs()->GetLaunchContainer(
321 extension, ExtensionPrefs::LAUNCH_REGULAR); 321 extension, ExtensionPrefs::LAUNCH_REGULAR);
322 322
323 application_launch::OpenApplication(profile, extension, launch_container, 323 application_launch::OpenApplication(profile, extension, launch_container,
324 GURL(), disposition); 324 GURL(), disposition, NULL);
325 } 325 }
326 326
327 } // namespace extensions 327 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698