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

Unified Diff: chrome/browser/chromeos/login/webui_login_view.cc

Issue 7851008: Crash fix for the case when the default profile is nuked while UI still expects it around. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/webui_login_view.cc
===================================================================
--- chrome/browser/chromeos/login/webui_login_view.cc (revision 99948)
+++ chrome/browser/chromeos/login/webui_login_view.cc (working copy)
@@ -101,7 +101,6 @@
WebUILoginView::WebUILoginView()
: status_area_(NULL),
- profile_(NULL),
webui_login_(NULL),
status_window_(NULL),
host_window_frozen_(false),
@@ -126,11 +125,10 @@
}
void WebUILoginView::Init() {
- profile_ = ProfileManager::GetDefaultProfile();
webui_login_ = new DOMView();
AddChildView(webui_login_);
- webui_login_->Init(profile_, NULL);
+ webui_login_->Init(ProfileManager::GetDefaultProfile(), NULL);
webui_login_->SetVisible(true);
webui_login_->tab_contents()->set_delegate(this);
@@ -213,7 +211,7 @@
}
Profile* WebUILoginView::GetProfile() const {
- return profile_;
+ return ProfileManager::GetDefaultProfile();
xiyuan 2011/09/08 02:12:36 Let's return NULL here. As this is an implementati
}
void WebUILoginView::ExecuteBrowserCommand(int id) const {
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698