| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/prefs/pref_change_registrar.h" | |
| 12 #include "base/prefs/pref_service.h" | |
| 13 #include "base/values.h" | 11 #include "base/values.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 16 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 17 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
| 16 #include "components/prefs/pref_change_registrar.h" |
| 17 #include "components/prefs/pref_service.h" |
| 18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 19 #include "content/public/browser/web_ui.h" | 19 #include "content/public/browser/web_ui.h" |
| 20 #include "content/public/browser/web_ui_data_source.h" | 20 #include "content/public/browser/web_ui_data_source.h" |
| 21 #include "content/public/browser/web_ui_message_handler.h" | 21 #include "content/public/browser/web_ui_message_handler.h" |
| 22 #include "grit/browser_resources.h" | 22 #include "grit/browser_resources.h" |
| 23 #include "ui/base/webui/jstemplate_builder.h" | 23 #include "ui/base/webui/jstemplate_builder.h" |
| 24 #include "ui/base/webui/web_ui_util.h" | 24 #include "ui/base/webui/web_ui_util.h" |
| 25 | 25 |
| 26 using content::WebUIMessageHandler; | 26 using content::WebUIMessageHandler; |
| 27 | 27 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 SlowHandler* handler = new SlowHandler(profile); | 129 SlowHandler* handler = new SlowHandler(profile); |
| 130 web_ui->AddMessageHandler(handler); | 130 web_ui->AddMessageHandler(handler); |
| 131 | 131 |
| 132 // Set up the chrome://slow/ source. | 132 // Set up the chrome://slow/ source. |
| 133 content::WebUIDataSource::Add(profile, CreateSlowUIHTMLSource()); | 133 content::WebUIDataSource::Add(profile, CreateSlowUIHTMLSource()); |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace chromeos | 136 } // namespace chromeos |
| 137 | 137 |
| OLD | NEW |