| OLD | NEW |
| 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.browser.webapps; | 5 package org.chromium.chrome.browser.webapps; |
| 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.graphics.Rect; | 9 import android.graphics.Rect; |
| 10 import android.net.Uri; | 10 import android.net.Uri; |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 if (isClosing() || !FeatureUtilities.isDocumentMode(mActivity)) retu
rn false; | 356 if (isClosing() || !FeatureUtilities.isDocumentMode(mActivity)) retu
rn false; |
| 357 | 357 |
| 358 mActivity.getTabCreator(isIncognito()).createTabWithWebContents( | 358 mActivity.getTabCreator(isIncognito()).createTabWithWebContents( |
| 359 webContents, getId(), TabLaunchType.FROM_LONGPRESS_FOREGROUN
D); | 359 webContents, getId(), TabLaunchType.FROM_LONGPRESS_FOREGROUN
D); |
| 360 | 360 |
| 361 // Returns true because Tabs are created asynchronously. | 361 // Returns true because Tabs are created asynchronously. |
| 362 return true; | 362 return true; |
| 363 } | 363 } |
| 364 } | 364 } |
| 365 } | 365 } |
| OLD | NEW |