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

Side by Side Diff: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellServiceTabLauncher.java

Issue 1057533005: Make service tab launcher a component (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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 package org.chromium.chrome.shell; 5 package org.chromium.chrome.shell;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.Intent; 8 import android.content.Intent;
9 import android.net.Uri; 9 import android.net.Uri;
10 import android.provider.Browser; 10 import android.provider.Browser;
11 11
12 import org.chromium.chrome.browser.ServiceTabLauncher; 12 import org.chromium.components.service_tab_launcher.ServiceTabLauncher;
13 import org.chromium.ui.WindowOpenDisposition; 13 import org.chromium.ui.WindowOpenDisposition;
14 14
15 /** 15 /**
16 * Service Tab Launcher implementation for ChromeShell. Provides the ability for Chromium to 16 * Service Tab Launcher implementation for ChromeShell. Provides the ability for Chromium to
17 * launch tabs from background services, e.g. a Service Worker. 17 * launch tabs from background services, e.g. a Service Worker.
18 * 18 *
19 * This class is used as the Chrome Shell implementation of the ServiceTabLaunch er, and is 19 * This class is used as the Chrome Shell implementation of the ServiceTabLaunch er, and is
20 * referred to per a meta-data section in the manifest file. 20 * referred to per a meta-data section in the manifest file.
21 */ 21 */
22 public class ChromeShellServiceTabLauncher extends ServiceTabLauncher { 22 public class ChromeShellServiceTabLauncher extends ServiceTabLauncher {
(...skipping 22 matching lines...) Expand all
45 45
46 intent.putExtra(ServiceTabLauncher.LAUNCH_REQUEST_ID_EXTRA, requestId); 46 intent.putExtra(ServiceTabLauncher.LAUNCH_REQUEST_ID_EXTRA, requestId);
47 47
48 // TODO(peter): Support |incognito| when ChromeShell supports that. 48 // TODO(peter): Support |incognito| when ChromeShell supports that.
49 // TODO(peter): Support the referrer information, extra headers and post data if 49 // TODO(peter): Support the referrer information, extra headers and post data if
50 // ChromeShell gets support for those properties from intent extras. 50 // ChromeShell gets support for those properties from intent extras.
51 51
52 context.startActivity(intent); 52 context.startActivity(intent);
53 } 53 }
54 } 54 }
OLDNEW
« no previous file with comments | « chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698