Index: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
index b097efb48305c2a02758a98b563dabe6b663ee5f..d1fd4eef3b6e1beb4cd3adc59537f4f30dfb9845 100644 |
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
@@ -6,6 +6,7 @@ |
import android.app.Activity; |
import android.app.FragmentManager; |
+import android.app.Notification; |
import android.content.Intent; |
import android.os.Bundle; |
import android.provider.Browser; |
@@ -39,6 +40,7 @@ |
import org.chromium.chrome.browser.identity.UuidBasedUniqueIdentificationGenerator; |
import org.chromium.chrome.browser.nfc.BeamController; |
import org.chromium.chrome.browser.nfc.BeamProvider; |
+import org.chromium.chrome.browser.notifications.NotificationUIManager; |
import org.chromium.chrome.browser.preferences.PreferencesLauncher; |
import org.chromium.chrome.browser.printing.PrintingControllerFactory; |
import org.chromium.chrome.browser.printing.TabPrinter; |
@@ -209,6 +211,12 @@ public String getTabUrlForBeam() { |
return tab.getUrl(); |
} |
}); |
+ |
+ // The notification settings cog on the flipped side of Notifications and in the Android |
+ // Settings "App Notifications" view will open us with a specific category. |
+ if (getIntent().hasCategory(Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES)) { |
+ NotificationUIManager.launchNotificationPreferences(this, getIntent()); |
+ } |
} |
@Override |