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

Unified Diff: chrome/browser/ui/webui/memory_internals/memory_internals_ui.cc

Issue 1722493002: Project Eraser: Kill chrome://memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chrome_browser_ui.gypi. Created 4 years, 9 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/memory_internals/memory_internals_ui.cc
diff --git a/chrome/browser/ui/webui/memory_internals/memory_internals_ui.cc b/chrome/browser/ui/webui/memory_internals/memory_internals_ui.cc
deleted file mode 100644
index 6139859624c07eb24bd640d2a06ae57e8e09f36d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/memory_internals/memory_internals_ui.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 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/memory_internals/memory_internals_ui.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/memory_internals/memory_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/memory_internals_resources.h"
-
-namespace {
-
-content::WebUIDataSource* CreateMemoryInternalsHTMLSource() {
- content::WebUIDataSource* source =
- content::WebUIDataSource::Create(chrome::kChromeUIMemoryInternalsHost);
-
- source->AddResourcePath("memory_internals.js",
- IDR_MEMORY_INTERNALS_MEMORY_INTERNALS_JS);
- source->SetDefaultResource(IDR_MEMORY_INTERNALS_MEMORY_INTERNALS_HTML);
- return source;
-}
-
-} // namespace
-
-MemoryInternalsUI::MemoryInternalsUI(content::WebUI* web_ui)
- : WebUIController(web_ui) {
- web_ui->AddMessageHandler(new MemoryInternalsHandler());
-
- // Set up the chrome://memory-internals/ source.
- Profile* profile = Profile::FromWebUI(web_ui);
- content::WebUIDataSource::Add(profile, CreateMemoryInternalsHTMLSource());
-}

Powered by Google App Engine
This is Rietveld 408576698