| Index: chrome/browser/ui/webui/predictors/predictors_ui.cc
 | 
| diff --git a/chrome/browser/ui/webui/predictors/predictors_ui.cc b/chrome/browser/ui/webui/predictors/predictors_ui.cc
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..09de1dda54c57b374a237f8d2899a3e1ed8c1d2e
 | 
| --- /dev/null
 | 
| +++ b/chrome/browser/ui/webui/predictors/predictors_ui.cc
 | 
| @@ -0,0 +1,32 @@
 | 
| +// 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/predictors/predictors_ui.h"
 | 
| +
 | 
| +#include "chrome/browser/profiles/profile.h"
 | 
| +#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
 | 
| +#include "chrome/browser/ui/webui/predictors/predictors_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* CreatePredictorsUIHTMLSource() {
 | 
| +  ChromeWebUIDataSource* source =
 | 
| +      new ChromeWebUIDataSource(chrome::kChromeUIPredictorsHost);
 | 
| +  source->add_resource_path("predictors.js", IDR_PREDICTORS_JS);
 | 
| +  source->set_default_resource(IDR_PREDICTORS_HTML);
 | 
| +  return source;
 | 
| +}
 | 
| +
 | 
| +}  // namespace
 | 
| +
 | 
| +PredictorsUI::PredictorsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
 | 
| +  Profile* profile = Profile::FromWebUI(web_ui);
 | 
| +  web_ui->AddMessageHandler(new PredictorsDOMHandler(profile));
 | 
| +  profile->GetChromeURLDataManager()->AddDataSource(
 | 
| +      CreatePredictorsUIHTMLSource());
 | 
| +}
 | 
| 
 |