Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java |
| index e79d47a9df396cff10ee8182e0c016d6f9883fc6..120968bc1b207c47c998e49d88af4ee0526ff05e 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java |
| @@ -103,6 +103,7 @@ import org.chromium.chrome.browser.omaha.UpdateMenuItemHelper; |
| import org.chromium.chrome.browser.pageinfo.WebsiteSettingsPopup; |
| import org.chromium.chrome.browser.partnercustomizations.PartnerBrowserCustomizations; |
| import org.chromium.chrome.browser.physicalweb.PhysicalWebShareActivity; |
| +import org.chromium.chrome.browser.physicalweb.PhysicalWebShareEntryActivity; |
| import org.chromium.chrome.browser.preferences.ChromePreferenceManager; |
| import org.chromium.chrome.browser.preferences.PrefServiceBridge; |
| import org.chromium.chrome.browser.preferences.PreferencesLauncher; |
| @@ -1837,6 +1838,10 @@ public abstract class ChromeActivity extends AsyncInitializationActivity |
| new PrintManagerDelegateImpl(this)); |
| RecordUserAction.record("MobileMenuPrint"); |
| } |
| + } else if (id == R.id.physical_web_sharing_id) { |
| + Intent intent = new Intent(this, PhysicalWebShareEntryActivity.class); |
| + intent.putExtra(PhysicalWebShareEntryActivity.SHARING_ENTRY_URL, currentTab.getUrl()); |
|
mattreynolds
2017/03/17 00:52:39
tab.getUrl() can sometimes return an empty string.
iankc
2017/03/17 01:46:10
No it would be able to handle this case. It would
|
| + startActivity(intent); |
| } else if (id == R.id.add_to_homescreen_id) { |
| AddToHomescreenManager addToHomescreenManager = |
| new AddToHomescreenManager(this, currentTab); |