| 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() {
|
|
|