| 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() {}
|
|
|