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

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

Issue 720683003: App list: Added DCHECK for custom page when switching profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_view_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
index c62666cc116babbc1ed5d7f09be697a07e711aad..ee06703608ca921ebd4daec04ed4bcac76c0b1ca 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -621,8 +621,10 @@ std::vector<views::View*> AppListViewDelegate::CreateCustomPageWebViews(
it != custom_page_contents_.end();
++it) {
content::WebContents* web_contents = (*it)->web_contents();
- // TODO(mgiuca): DCHECK_EQ(profile_, web_contents->GetBrowserContext())
- // after http://crbug.com/392763 resolved.
+
+ // The web contents should belong to the current profile.
+ DCHECK_EQ(profile_, web_contents->GetBrowserContext());
+
views::WebView* web_view =
new views::WebView(web_contents->GetBrowserContext());
web_view->SetPreferredSize(size);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698