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..060d833ba6cff78accb10cbc134eaf5072a8b112 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* GetBrowserForBackgroundWebIntentDelivery(Profile* profile) { |
+ Browser* browser = BrowserList::GetLastActive(); |
+ if (browser && profile && browser->profile() != profile) |
+ return NULL; |
+ return browser; |
+} |
+ |
} // namespace web_intents |