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

Side by Side Diff: chrome/browser/ui/webui/settings/languages_handler.h

Issue 2052793004: MD Settings: Hook up languages_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_LANGUAGES_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_LANGUAGES_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_LANGUAGES_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_LANGUAGES_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 // SettingsPageUIHandler implementation. 29 // SettingsPageUIHandler implementation.
30 void RegisterMessages() override; 30 void RegisterMessages() override;
31 void OnJavascriptAllowed() override {} 31 void OnJavascriptAllowed() override {}
32 void OnJavascriptDisallowed() override {} 32 void OnJavascriptDisallowed() override {}
33 33
34 private: 34 private:
35 // Changes the UI language, provided the user is allowed to do so. 35 // Changes the UI language, provided the user is allowed to do so.
36 void HandleSetUILanguage(const base::ListValue* args); 36 void HandleSetUILanguage(const base::ListValue* args);
37 37
38 // Restarts Chrome to apply a UI language change.
39 void HandleRestart(const base::ListValue* args);
40
41 Profile* profile_; // Weak pointer. 38 Profile* profile_; // Weak pointer.
42 39
43 DISALLOW_COPY_AND_ASSIGN(LanguagesHandler); 40 DISALLOW_COPY_AND_ASSIGN(LanguagesHandler);
44 }; 41 };
45 42
46 } // namespace settings 43 } // namespace settings
47 44
48 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_LANGUAGES_HANDLER_H_ 45 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_LANGUAGES_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698