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

Unified Diff: chrome/browser/background/background_contents_service.cc

Issue 790423002: Add the main frame routing ID to WebContentsDelegate, use it in BackgroundContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content shell Created 6 years 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
Index: chrome/browser/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 22ff2b0759819010ffdebe6a4cdba207757378fa..65da55fb35b383658239102ad40afc46eff1ee81 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -622,6 +622,7 @@ void BackgroundContentsService::LoadBackgroundContents(
BackgroundContents* contents = CreateBackgroundContents(
SiteInstance::CreateForURL(profile, url),
MSG_ROUTING_NONE,
+ MSG_ROUTING_NONE,
profile,
frame_name,
application_id,
@@ -637,13 +638,15 @@ void BackgroundContentsService::LoadBackgroundContents(
BackgroundContents* BackgroundContentsService::CreateBackgroundContents(
SiteInstance* site,
int routing_id,
+ int main_frame_route_id,
Profile* profile,
const base::string16& frame_name,
const base::string16& application_id,
const std::string& partition_id,
content::SessionStorageNamespace* session_storage_namespace) {
BackgroundContents* contents = new BackgroundContents(
- site, routing_id, this, partition_id, session_storage_namespace);
+ site, routing_id, main_frame_route_id, this, partition_id,
+ session_storage_namespace);
// Register the BackgroundContents internally, then send out a notification
// to external listeners.

Powered by Google App Engine
This is Rietveld 408576698