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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 2725903002: [WebUI] Add a chrome://prefs-internals page (Closed)
Patch Set: Add comment Created 3 years, 10 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 | chrome/browser/ui/BUILD.gn » ('j') | chrome/browser/ui/webui/prefs_internals_browsertest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 03d8ff3f37acab890adfa982e2b42bc4b0e9cb25..42c0754f054f771d9758e823c6960d7a34a2003a 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -75,6 +75,7 @@
#include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h"
#include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h"
#include "chrome/browser/ui/startup/startup_browser_creator.h"
+#include "chrome/browser/ui/webui/prefs_internals_source.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_paths_internal.h"
@@ -507,6 +508,8 @@ ProfileImpl::ProfileImpl(
// Prefs were loaded synchronously so we can continue directly.
OnPrefsLoaded(create_mode, true);
}
+
+ content::URLDataSource::Add(this, new PrefsInternalsSource(this));
Devlin 2017/03/01 17:59:23 Any better place for this?
Dan Beam 2017/03/08 18:40:58 i don't really know but in an ideal world this wou
Devlin 2017/03/09 01:21:49 Agreed - does the webui framework offer a way to d
Dan Beam 2017/03/09 02:16:54 not really
}
void ProfileImpl::DoFinalInit() {
« no previous file with comments | « no previous file | chrome/browser/ui/BUILD.gn » ('j') | chrome/browser/ui/webui/prefs_internals_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698