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

Unified Diff: chrome/browser/ui/webui/sync_file_system_internals_ui.cc

Issue 14084008: Boilerplate code to add chrome://syncfs-internals page for debugging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase with similarity=20 Created 7 years, 8 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/ui/webui/sync_file_system_internals_ui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/sync_file_system_internals_ui.cc
diff --git a/chrome/browser/ui/webui/predictors/predictors_ui.cc b/chrome/browser/ui/webui/sync_file_system_internals_ui.cc
similarity index 37%
copy from chrome/browser/ui/webui/predictors/predictors_ui.cc
copy to chrome/browser/ui/webui/sync_file_system_internals_ui.cc
index 0497f7718a85eacfa6538f303c78350de09447d1..8428a66ac42b874288d9441f9110050082058c8a 100644
--- a/chrome/browser/ui/webui/predictors/predictors_ui.cc
+++ b/chrome/browser/ui/webui/sync_file_system_internals_ui.cc
@@ -1,31 +1,32 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/webui/predictors/predictors_ui.h"
+#include "chrome/browser/ui/webui/sync_file_system_internals_ui.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/predictors/predictors_handler.h"
#include "chrome/common/url_constants.h"
-#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
-#include "grit/browser_resources.h"
+#include "grit/sync_file_system_internals_resources.h"
namespace {
-content::WebUIDataSource* CreatePredictorsUIHTMLSource() {
+content::WebUIDataSource* CreateSyncFileSystemInternalsHTMLSource() {
content::WebUIDataSource* source =
- content::WebUIDataSource::Create(chrome::kChromeUIPredictorsHost);
- source->AddResourcePath("predictors.js", IDR_PREDICTORS_JS);
- source->SetDefaultResource(IDR_PREDICTORS_HTML);
+ content::WebUIDataSource::Create(
+ chrome::kChromeUISyncFileSystemInternalsHost);
+ source->SetDefaultResource(IDR_SYNC_FILE_SYSTEM_INTERNALS_MAIN_HTML);
return source;
}
} // namespace
-PredictorsUI::PredictorsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
+SyncFileSystemInternalsUI::SyncFileSystemInternalsUI(content::WebUI* web_ui)
+ : WebUIController(web_ui) {
Profile* profile = Profile::FromWebUI(web_ui);
- web_ui->AddMessageHandler(new PredictorsHandler(profile));
- content::WebUIDataSource::Add(profile, CreatePredictorsUIHTMLSource());
+ content::WebUIDataSource::Add(profile,
+ CreateSyncFileSystemInternalsHTMLSource());
}
+
+SyncFileSystemInternalsUI::~SyncFileSystemInternalsUI() {}
« no previous file with comments | « chrome/browser/ui/webui/sync_file_system_internals_ui.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698