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

Unified Diff: chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc

Issue 4694008: Make pink's TabContentsWrapper change compile on Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/dom_ui/html_dialog_tab_contents_delegate.cc
===================================================================
--- chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc (revision 66453)
+++ chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/tab_contents/tab_contents.h"
+#include "chrome/browser/tab_contents_wrapper.h"
#include "chrome/browser/tabs/tab_strip_model.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_navigator.h"
@@ -57,9 +58,12 @@
// Specify a NULL browser for navigation. This will cause Navigate()
// to find a browser matching params.profile or create a new one.
Browser* browser = NULL;
- browser::NavigateParams params(browser, new_contents);
+
+ TabContentsWrapper* wrapper = new TabContentsWrapper(new_contents);
+ browser::NavigateParams params(browser, wrapper);
params.profile = profile_;
- params.source_contents = source;
+ // TODO(pinkerton): no way to get a wrapper for this.
+ // params.source_contents = source;
params.disposition = disposition;
params.window_bounds = initial_pos;
params.show_window = true;

Powered by Google App Engine
This is Rietveld 408576698