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.externalnav; | 5 package org.chromium.chrome.browser.externalnav; |
6 | 6 |
7 import android.Manifest.permission; | 7 import android.Manifest.permission; |
8 import android.app.Activity; | 8 import android.app.Activity; |
9 import android.content.Context; | 9 import android.content.Context; |
10 import android.content.DialogInterface; | 10 import android.content.DialogInterface; |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 if (TextUtils.isEmpty(fileExtension)) return false; | 535 if (TextUtils.isEmpty(fileExtension)) return false; |
536 | 536 |
537 return PDF_EXTENSION.equals(fileExtension); | 537 return PDF_EXTENSION.equals(fileExtension); |
538 } | 538 } |
539 | 539 |
540 @Override | 540 @Override |
541 public void maybeRecordAppHandlersInIntent(Intent intent, List<ResolveInfo>
infos) { | 541 public void maybeRecordAppHandlersInIntent(Intent intent, List<ResolveInfo>
infos) { |
542 intent.putExtra(IntentHandler.EXTRA_EXTERNAL_NAV_PACKAGES, | 542 intent.putExtra(IntentHandler.EXTRA_EXTERNAL_NAV_PACKAGES, |
543 getSpecializedHandlersWithFilter(infos, null)); | 543 getSpecializedHandlersWithFilter(infos, null)); |
544 } | 544 } |
| 545 |
| 546 @Override |
| 547 public Context getAssociatedActivityContext() { |
| 548 return mApplicationContext; |
| 549 } |
545 } | 550 } |
OLD | NEW |