diff options
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 3f6b024..fe267cb 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -201,6 +201,8 @@ Browser::Browser(Type type, Profile* profile) // Trim browser memory on idle for low & medium memory models. if (g_browser_process->memory_model() < BrowserProcess::HIGH_MEMORY_MODEL) idle_task_->Start(); + + renderer_preferences_.can_accept_load_drops = (this->type() == TYPE_NORMAL); } Browser::~Browser() { @@ -321,6 +323,8 @@ void Browser::OpenApplicationWindow(Profile* profile, const GURL& url) { Browser* browser = Browser::CreateForApp(app_name, profile, false); browser->AddTabWithURL(url, GURL(), PageTransition::START_PAGE, true, -1, false, NULL); + browser->GetSelectedTabContents()->render_view_host()->SetRendererPrefs( + browser->GetSelectedTabContents()->delegate()->GetRendererPrefs()); browser->window()->Show(); // TODO(jcampan): http://crbug.com/8123 we should not need to set the initial // focus explicitly. @@ -1859,6 +1863,8 @@ void Browser::ConvertContentsToApplication(TabContents* contents) { DetachContents(contents); Browser* browser = Browser::CreateForApp(app_name, profile_, false); browser->tabstrip_model()->AppendTabContents(contents, true); + browser->GetSelectedTabContents()->render_view_host()->SetRendererPrefs( + browser->GetSelectedTabContents()->delegate()->GetRendererPrefs()); browser->window()->Show(); } |