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

Unified Diff: chrome/browser/ui/webui/about_page/about_page_ui.cc

Issue 9320056: Help: Implement the initial version of the cross-platform help/about page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: String fix. Created 8 years, 11 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: chrome/browser/ui/webui/about_page/about_page_ui.cc
diff --git a/chrome/browser/ui/webui/about_page/about_page_ui.cc b/chrome/browser/ui/webui/about_page/about_page_ui.cc
deleted file mode 100644
index 67540484ae5c08e158b0b312a0ee0eeccd42246b..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/about_page/about_page_ui.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 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/about_page/about_page_ui.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/about_page/about_page_handler.h"
-#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
-#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
-#include "chrome/browser/ui/webui/shared_resources_data_source.h"
-#include "chrome/common/url_constants.h"
-#include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_ui.h"
-#include "grit/browser_resources.h"
-
-namespace {
-
-ChromeWebUIDataSource* CreateAboutPageHTMLSource() {
- ChromeWebUIDataSource* source =
- new ChromeWebUIDataSource(chrome::kChromeUIAboutPageFrameHost);
-
- source->set_json_path("strings.js");
- source->add_resource_path("about_page.js", IDR_ABOUT_PAGE_JS);
- source->set_default_resource(IDR_ABOUT_PAGE_HTML);
- return source;
-}
-
-} // namespace
-
-AboutPageUI::AboutPageUI(content::WebUI* web_ui)
- : WebUIController(web_ui) {
- Profile* profile = Profile::FromWebUI(web_ui);
- ChromeWebUIDataSource* source = CreateAboutPageHTMLSource();
- profile->GetChromeURLDataManager()->AddDataSource(source);
- profile->GetChromeURLDataManager()->AddDataSource(
- new SharedResourcesDataSource());
-
- AboutPageHandler* handler = new AboutPageHandler();
- handler->GetLocalizedValues(source->localized_strings());
- web_ui->AddMessageHandler(handler);
-}
-
-AboutPageUI::~AboutPageUI() {
-}

Powered by Google App Engine
This is Rietveld 408576698