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

Unified Diff: chrome/browser/intents/web_intents_util.cc

Issue 10880074: Don't prompt for directory on web intents downloads; handle in current tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More android ifdef Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/intents/web_intents_util.cc
diff --git a/chrome/browser/intents/web_intents_util.cc b/chrome/browser/intents/web_intents_util.cc
index 0cb3b2f03435d8a8f55f6137b47d2f884e946edb..1307b2e83b7140fec34b492c9087cd82e63563cc 100644
--- a/chrome/browser/intents/web_intents_util.cc
+++ b/chrome/browser/intents/web_intents_util.cc
@@ -57,10 +57,14 @@ bool IsWebIntentsEnabledForProfile(Profile* profile) {
}
Browser* GetBrowserForBackgroundWebIntentDelivery(Profile* profile) {
+#if defined(OS_ANDROID)
+ return NULL;
+#else
Browser* browser = BrowserList::GetLastActive();
if (browser && profile && browser->profile() != profile)
return NULL;
return browser;
+#endif // defined(OS_ANDROID)
}
bool IsRecognizedAction(const string16& action) {
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698