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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_ui.cc

Issue 1778663007: MD Settings: break SettingsPageUIHandler to its own file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startup-nits
Patch Set: fix compile 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/settings/md_settings_ui.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_ui.cc b/chrome/browser/ui/webui/settings/md_settings_ui.cc
index 6ee2da9b86dd1e77ba3d40d9b7a427963569f728..c748fbd3bb3aaea42e26918aa755a28636d70026 100644
--- a/chrome/browser/ui/webui/settings/md_settings_ui.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_ui.cc
@@ -19,6 +19,7 @@
#include "chrome/browser/ui/webui/settings/reset_settings_handler.h"
#include "chrome/browser/ui/webui/settings/search_engines_handler.h"
#include "chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h"
+#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
#include "chrome/browser/ui/webui/settings/settings_startup_pages_handler.h"
#include "chrome/browser/ui/webui/settings/site_settings_handler.h"
#include "chrome/browser/ui/webui/settings/system_handler.h"
@@ -44,30 +45,6 @@
namespace settings {
-SettingsPageUIHandler::SettingsPageUIHandler() {
-}
-
-SettingsPageUIHandler::~SettingsPageUIHandler() {
-}
-
-void SettingsPageUIHandler::ResolveJavascriptCallback(
- const base::Value& callback_id,
- const base::Value& response) {
- // cr.webUIResponse is a global JS function exposed from cr.js.
- web_ui()->CallJavascriptFunction(
- "cr.webUIResponse", callback_id,
- base::FundamentalValue(true), response);
-}
-
-void SettingsPageUIHandler::RejectJavascriptCallback(
- const base::Value& callback_id,
- const base::Value& response) {
- // cr.webUIResponse is a global JS function exposed from cr.js.
- web_ui()->CallJavascriptFunction(
- "cr.webUIResponse", callback_id,
- base::FundamentalValue(false), response);
-}
-
MdSettingsUI::MdSettingsUI(content::WebUI* web_ui)
: content::WebUIController(web_ui),
WebContentsObserver(web_ui->GetWebContents()) {
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.h ('k') | chrome/browser/ui/webui/settings/people_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698