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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_view.cc

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged ToT Created 8 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/webui_login_view.h" 5 #include "chrome/browser/chromeos/login/webui_login_view.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray.h" 8 #include "ash/system/tray/system_tray.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 webui_login_ = new views::WebView(ProfileManager::GetDefaultProfile()); 146 webui_login_ = new views::WebView(ProfileManager::GetDefaultProfile());
147 AddChildView(webui_login_); 147 AddChildView(webui_login_);
148 148
149 // We create the WebContents ourselves because the TabContents assumes 149 // We create the WebContents ourselves because the TabContents assumes
150 // ownership of it. This should be reworked once we don't need to use the 150 // ownership of it. This should be reworked once we don't need to use the
151 // TabContents here. 151 // TabContents here.
152 WebContents* web_contents = 152 WebContents* web_contents =
153 WebContents::Create(ProfileManager::GetDefaultProfile(), 153 WebContents::Create(ProfileManager::GetDefaultProfile(),
154 NULL, 154 NULL,
155 MSG_ROUTING_NONE, 155 MSG_ROUTING_NONE,
156 NULL,
157 NULL); 156 NULL);
158 tab_contents_.reset(new TabContents(web_contents)); 157 tab_contents_.reset(new TabContents(web_contents));
159 webui_login_->SetWebContents(web_contents); 158 webui_login_->SetWebContents(web_contents);
160 159
161 web_contents->SetDelegate(this); 160 web_contents->SetDelegate(this);
162 renderer_preferences_util::UpdateFromSystemSettings( 161 renderer_preferences_util::UpdateFromSystemSettings(
163 web_contents->GetMutableRendererPrefs(), 162 web_contents->GetMutableRendererPrefs(),
164 ProfileManager::GetDefaultProfile()); 163 ProfileManager::GetDefaultProfile());
165 164
166 registrar_.Add(this, 165 registrar_.Add(this,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 aura::Env::GetInstance()->set_render_white_bg(true); 372 aura::Env::GetInstance()->set_render_white_bg(true);
374 } 373 }
375 374
376 void WebUILoginView::ReturnFocus(bool reverse) { 375 void WebUILoginView::ReturnFocus(bool reverse) {
377 // Return the focus to the web contents. 376 // Return the focus to the web contents.
378 webui_login_->web_contents()->FocusThroughTabTraversal(reverse); 377 webui_login_->web_contents()->FocusThroughTabTraversal(reverse);
379 GetWidget()->Activate(); 378 GetWidget()->Activate();
380 } 379 }
381 380
382 } // namespace chromeos 381 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/simple_web_view_dialog.cc ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698