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

Unified Diff: trunk/src/chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_ui.cc

Issue 14753008: Revert 198867 "Gets the initial sync service status. In the next..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
Index: trunk/src/chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_ui.cc
===================================================================
--- trunk/src/chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_ui.cc (revision 198868)
+++ trunk/src/chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_ui.cc (working copy)
@@ -1,38 +0,0 @@
-// 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/sync_file_system_internals/sync_file_system_internals_ui.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_internals_handler.h"
-#include "chrome/common/url_constants.h"
-#include "content/public/browser/web_ui.h"
-#include "content/public/browser/web_ui_data_source.h"
-#include "grit/sync_file_system_internals_resources.h"
-
-namespace {
-
-content::WebUIDataSource* CreateSyncFileSystemInternalsHTMLSource() {
- content::WebUIDataSource* source =
- content::WebUIDataSource::Create(
- chrome::kChromeUISyncFileSystemInternalsHost);
- source->SetJsonPath("strings.js");
- source->AddResourcePath(
- "sync_service.js", IDR_SYNC_FILE_SYSTEM_INTERNALS_SYNC_SERVICE_JS);
- source->SetDefaultResource(IDR_SYNC_FILE_SYSTEM_INTERNALS_MAIN_HTML);
- return source;
-}
-
-} // namespace
-
-SyncFileSystemInternalsUI::SyncFileSystemInternalsUI(content::WebUI* web_ui)
- : WebUIController(web_ui) {
- Profile* profile = Profile::FromWebUI(web_ui);
- web_ui->AddMessageHandler(
- new syncfs_internals::SyncFileSystemInternalsHandler(profile));
- content::WebUIDataSource::Add(profile,
- CreateSyncFileSystemInternalsHTMLSource());
-}
-
-SyncFileSystemInternalsUI::~SyncFileSystemInternalsUI() {}

Powered by Google App Engine
This is Rietveld 408576698