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

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

Issue 2055923002: MD Settings: Hook up system_page to new LifetimeBrowserProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime_handler
Patch Set: Fix closure compilation. Created 4 years, 6 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/system_handler.cc
diff --git a/chrome/browser/ui/webui/settings/system_handler.cc b/chrome/browser/ui/webui/settings/system_handler.cc
index bb264b49aacf781563e88c8ce600fbad767b9fcc..cc2960a8a2055304e9cf46767bf23de4343c5211 100644
--- a/chrome/browser/ui/webui/settings/system_handler.cc
+++ b/chrome/browser/ui/webui/settings/system_handler.cc
@@ -10,7 +10,6 @@
#include "base/metrics/user_metrics_action.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/gpu/gpu_mode_manager.h"
-#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/ui/webui/settings_utils.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
@@ -31,9 +30,6 @@ void SystemHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback("changeProxySettings",
base::Bind(&SystemHandler::HandleChangeProxySettings,
base::Unretained(this)));
- web_ui()->RegisterMessageCallback("restartBrowser",
- base::Bind(&SystemHandler::HandleRestartBrowser,
- base::Unretained(this)));
}
void SystemHandler::HandleChangeProxySettings(const base::ListValue* /*args*/) {
@@ -41,8 +37,4 @@ void SystemHandler::HandleChangeProxySettings(const base::ListValue* /*args*/) {
settings_utils::ShowNetworkProxySettings(web_ui()->GetWebContents());
}
-void SystemHandler::HandleRestartBrowser(const base::ListValue* /*args*/) {
- chrome::AttemptRestart();
-}
-
} // namespace settings
« no previous file with comments | « chrome/browser/ui/webui/settings/system_handler.h ('k') | chrome/test/data/webui/settings/cr_settings_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698