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

Unified Diff: chrome/browser/ui/browser.cc

Issue 5589001: Change drag and drop prefs on the right browser window. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: improve test comments. Created 10 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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 9085f5f4e7c88e796d383d3f03151cc54d0c0f66..8ccdf6edd2b13a987763076b35ff6fcbd351ebaa 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2946,13 +2946,13 @@ void Browser::ConvertContentsToApplication(TabContents* contents) {
RegisterAppPrefs(app_name);
DetachContents(contents);
- Browser* browser = Browser::CreateForApp(app_name, NULL, profile_, false);
+ Browser* app_browser = Browser::CreateForApp(app_name, NULL, profile_, false);
TabContentsWrapper* wrapper = new TabContentsWrapper(contents);
- browser->tabstrip_model()->AppendTabContents(wrapper, true);
- TabContents* tab_contents = GetSelectedTabContents();
- tab_contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
- tab_contents->render_view_host()->SyncRendererPrefs();
- browser->window()->Show();
+ app_browser->tabstrip_model()->AppendTabContents(wrapper, true);
+
+ contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
+ contents->render_view_host()->SyncRendererPrefs();
+ app_browser->window()->Show();
}
bool Browser::ShouldDisplayURLField() {
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698