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 319335bfd3e46ca5feedefe5f057783ffaf9ee98..c49ce556ab24fa6de8e3f46b88f96259c0a5c71b 100644 |
--- a/chrome/browser/intents/web_intents_util.cc |
+++ b/chrome/browser/intents/web_intents_util.cc |
@@ -28,4 +28,11 @@ bool IsWebIntentsEnabledForProfile(Profile* profile) { |
return IsWebIntentsEnabled(profile->GetPrefs()); |
} |
+Browser* GetWebIntentDeliveryBrowser(Profile* profile) { |
+ Browser* browser = BrowserList::GetLastActive(); |
+ if (browser && profile && browser->profile() != profile) |
+ return NULL; |
+ return browser; |
+} |
+ |
} // namespace web_intents |