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

Unified Diff: chrome/browser/ui/webui/task_manager/task_manager_dialog.cc

Issue 10332297: Make WebUI Task Manager use ShowWebDialog directly rather than calling it with a Browser/use Browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « 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/webui/task_manager/task_manager_dialog.cc
===================================================================
--- chrome/browser/ui/webui/task_manager/task_manager_dialog.cc (revision 138102)
+++ chrome/browser/ui/webui/task_manager/task_manager_dialog.cc (working copy)
@@ -18,13 +18,13 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/scoped_user_pref_update.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser_dialogs.h"
-#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/webui/web_dialog_delegate.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
+#include "content/public/browser/browser_thread.h"
#include "grit/google_chrome_strings.h"
#include "ui/base/l10n/l10n_util.h"
@@ -192,10 +192,10 @@
}
void TaskManagerDialogImpl::OpenWebDialog() {
- Browser* browser = BrowserList::GetLastActive();
- DCHECK(browser);
- window_ = browser::ShowWebDialog(
- NULL, browser->profile()->GetOriginalProfile(), NULL, this);
+ window_ = browser::ShowWebDialog(NULL,
+ ProfileManager::GetDefaultProfile(),
+ NULL,
+ this);
}
// static
« 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