| 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.document; | 5 package org.chromium.chrome.browser.document; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.app.Activity; | 8 import android.app.Activity; |
| 9 import android.app.Notification; | 9 import android.app.Notification; |
| 10 import android.app.SearchManager; | 10 import android.app.SearchManager; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 import org.chromium.base.ApiCompatibilityUtils; | 21 import org.chromium.base.ApiCompatibilityUtils; |
| 22 import org.chromium.base.ApplicationStatus; | 22 import org.chromium.base.ApplicationStatus; |
| 23 import org.chromium.base.CommandLineInitUtil; | 23 import org.chromium.base.CommandLineInitUtil; |
| 24 import org.chromium.base.ContextUtils; | 24 import org.chromium.base.ContextUtils; |
| 25 import org.chromium.base.Log; | 25 import org.chromium.base.Log; |
| 26 import org.chromium.base.TraceEvent; | 26 import org.chromium.base.TraceEvent; |
| 27 import org.chromium.chrome.R; | 27 import org.chromium.chrome.R; |
| 28 import org.chromium.chrome.browser.ChromeApplication; | 28 import org.chromium.chrome.browser.ChromeApplication; |
| 29 import org.chromium.chrome.browser.ChromeSwitches; | 29 import org.chromium.chrome.browser.ChromeSwitches; |
| 30 import org.chromium.chrome.browser.ChromeTabbedActivity; | 30 import org.chromium.chrome.browser.ChromeTabbedActivity; |
| 31 import org.chromium.chrome.browser.InstantAppsHandler; | |
| 32 import org.chromium.chrome.browser.IntentHandler; | 31 import org.chromium.chrome.browser.IntentHandler; |
| 33 import org.chromium.chrome.browser.IntentHandler.ExternalAppId; | 32 import org.chromium.chrome.browser.IntentHandler.ExternalAppId; |
| 34 import org.chromium.chrome.browser.IntentHandler.TabOpenType; | 33 import org.chromium.chrome.browser.IntentHandler.TabOpenType; |
| 35 import org.chromium.chrome.browser.ShortcutHelper; | 34 import org.chromium.chrome.browser.ShortcutHelper; |
| 36 import org.chromium.chrome.browser.UrlConstants; | 35 import org.chromium.chrome.browser.UrlConstants; |
| 37 import org.chromium.chrome.browser.WarmupManager; | 36 import org.chromium.chrome.browser.WarmupManager; |
| 38 import org.chromium.chrome.browser.customtabs.CustomTabActivity; | 37 import org.chromium.chrome.browser.customtabs.CustomTabActivity; |
| 39 import org.chromium.chrome.browser.customtabs.CustomTabIntentDataProvider; | 38 import org.chromium.chrome.browser.customtabs.CustomTabIntentDataProvider; |
| 40 import org.chromium.chrome.browser.customtabs.CustomTabsConnection; | 39 import org.chromium.chrome.browser.customtabs.CustomTabsConnection; |
| 41 import org.chromium.chrome.browser.customtabs.SeparateTaskCustomTabActivity; | 40 import org.chromium.chrome.browser.customtabs.SeparateTaskCustomTabActivity; |
| 42 import org.chromium.chrome.browser.firstrun.FirstRunActivity; | 41 import org.chromium.chrome.browser.firstrun.FirstRunActivity; |
| 43 import org.chromium.chrome.browser.firstrun.FirstRunFlowSequencer; | 42 import org.chromium.chrome.browser.firstrun.FirstRunFlowSequencer; |
| 44 import org.chromium.chrome.browser.firstrun.LightweightFirstRunActivity; | 43 import org.chromium.chrome.browser.firstrun.LightweightFirstRunActivity; |
| 44 import org.chromium.chrome.browser.instantapps.InstantAppsHandler; |
| 45 import org.chromium.chrome.browser.metrics.LaunchMetrics; | 45 import org.chromium.chrome.browser.metrics.LaunchMetrics; |
| 46 import org.chromium.chrome.browser.metrics.MediaNotificationUma; | 46 import org.chromium.chrome.browser.metrics.MediaNotificationUma; |
| 47 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils; | 47 import org.chromium.chrome.browser.multiwindow.MultiWindowUtils; |
| 48 import org.chromium.chrome.browser.notifications.NotificationPlatformBridge; | 48 import org.chromium.chrome.browser.notifications.NotificationPlatformBridge; |
| 49 import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomiza
tions; | 49 import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomiza
tions; |
| 50 import org.chromium.chrome.browser.tab.Tab; | 50 import org.chromium.chrome.browser.tab.Tab; |
| 51 import org.chromium.chrome.browser.tabmodel.DocumentModeAssassin; | 51 import org.chromium.chrome.browser.tabmodel.DocumentModeAssassin; |
| 52 import org.chromium.chrome.browser.upgrade.UpgradeActivity; | 52 import org.chromium.chrome.browser.upgrade.UpgradeActivity; |
| 53 import org.chromium.chrome.browser.util.FeatureUtilities; | 53 import org.chromium.chrome.browser.util.FeatureUtilities; |
| 54 import org.chromium.chrome.browser.util.IntentUtils; | 54 import org.chromium.chrome.browser.util.IntentUtils; |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 IntentHandler.ExternalAppId source = | 581 IntentHandler.ExternalAppId source = |
| 582 IntentHandler.determineExternalIntentSource(getPackageName(), in
tent); | 582 IntentHandler.determineExternalIntentSource(getPackageName(), in
tent); |
| 583 if (intent.getPackage() == null && source != IntentHandler.ExternalAppId
.CHROME) { | 583 if (intent.getPackage() == null && source != IntentHandler.ExternalAppId
.CHROME) { |
| 584 int flagsOfInterest = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_AC
TIVITY_NEW_DOCUMENT; | 584 int flagsOfInterest = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_AC
TIVITY_NEW_DOCUMENT; |
| 585 int maskedFlags = intent.getFlags() & flagsOfInterest; | 585 int maskedFlags = intent.getFlags() & flagsOfInterest; |
| 586 sIntentFlagsHistogram.record(maskedFlags); | 586 sIntentFlagsHistogram.record(maskedFlags); |
| 587 } | 587 } |
| 588 MediaNotificationUma.recordClickSource(intent); | 588 MediaNotificationUma.recordClickSource(intent); |
| 589 } | 589 } |
| 590 } | 590 } |
| OLD | NEW |