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

Side by Side Diff: apps/launcher.cc

Issue 2212303003: Implement app launch changes for app runtime extension proposal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-screenshot
Patch Set: Initial upload Created 4 years, 4 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
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 "apps/launcher.h" 5 #include "apps/launcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } 386 }
387 387
388 void LaunchPlatformAppWithPath(Profile* profile, 388 void LaunchPlatformAppWithPath(Profile* profile,
389 const Extension* extension, 389 const Extension* extension,
390 const base::FilePath& file_path) { 390 const base::FilePath& file_path) {
391 scoped_refptr<PlatformAppPathLauncher> launcher = 391 scoped_refptr<PlatformAppPathLauncher> launcher =
392 new PlatformAppPathLauncher(profile, extension, file_path); 392 new PlatformAppPathLauncher(profile, extension, file_path);
393 launcher->Launch(); 393 launcher->Launch();
394 } 394 }
395 395
396 void LaunchPlatformAppWithAction(Profile* profile,
397 const extensions::Extension* extension,
398 extensions::ActionData action_data) {
399 AppRuntimeEventRouter::DispatchOnLaunchedEventWithAction(profile, extension,
400 action_data);
401 }
402
396 void LaunchPlatformApp(Profile* profile, 403 void LaunchPlatformApp(Profile* profile,
397 const Extension* extension, 404 const Extension* extension,
398 extensions::AppLaunchSource source) { 405 extensions::AppLaunchSource source) {
399 LaunchPlatformAppWithCommandLine( 406 LaunchPlatformAppWithCommandLine(
400 profile, 407 profile,
401 extension, 408 extension,
402 base::CommandLine(base::CommandLine::NO_PROGRAM), 409 base::CommandLine(base::CommandLine::NO_PROGRAM),
403 base::FilePath(), 410 base::FilePath(),
404 source); 411 source);
405 } 412 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 void LaunchPlatformAppWithUrl(Profile* profile, 449 void LaunchPlatformAppWithUrl(Profile* profile,
443 const Extension* extension, 450 const Extension* extension,
444 const std::string& handler_id, 451 const std::string& handler_id,
445 const GURL& url, 452 const GURL& url,
446 const GURL& referrer_url) { 453 const GURL& referrer_url) {
447 AppRuntimeEventRouter::DispatchOnLaunchedEventWithUrl( 454 AppRuntimeEventRouter::DispatchOnLaunchedEventWithUrl(
448 profile, extension, handler_id, url, referrer_url); 455 profile, extension, handler_id, url, referrer_url);
449 } 456 }
450 457
451 } // namespace apps 458 } // namespace apps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698