Index: chrome/browser/ui/webui/network_action_predictor/network_action_predictor_ui.cc |
diff --git a/chrome/browser/ui/webui/network_action_predictor/network_action_predictor_ui.cc b/chrome/browser/ui/webui/network_action_predictor/network_action_predictor_ui.cc |
deleted file mode 100644 |
index 7fe40b488fab5bffaa2b310e3a66d28871729adc..0000000000000000000000000000000000000000 |
--- a/chrome/browser/ui/webui/network_action_predictor/network_action_predictor_ui.cc |
+++ /dev/null |
@@ -1,35 +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/network_action_predictor/network_action_predictor_ui.h" |
- |
-#include "chrome/browser/profiles/profile.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/network_action_predictor/network_action_predictor_dom_handler.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* CreateNetworkActionPredictorUIHTMLSource() { |
- ChromeWebUIDataSource* source = |
- new ChromeWebUIDataSource(chrome::kChromeUINetworkActionPredictorHost); |
- source->add_resource_path("network_action_predictor.js", |
- IDR_NETWORK_ACTION_PREDICTOR_JS); |
- source->set_default_resource(IDR_NETWORK_ACTION_PREDICTOR_HTML); |
- return source; |
-} |
- |
-} // namespace |
- |
-NetworkActionPredictorUI::NetworkActionPredictorUI(content::WebUI* web_ui) |
- : WebUIController(web_ui) { |
- Profile* profile = Profile::FromWebUI(web_ui); |
- web_ui->AddMessageHandler(new NetworkActionPredictorDOMHandler(profile)); |
- ChromeURLDataManager::AddDataSource(profile, |
- CreateNetworkActionPredictorUIHTMLSource()); |
-} |