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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java

Issue 2167573003: Verify intent signatures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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.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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698