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

Unified Diff: ui/base/material_design/material_design_controller.h

Issue 1988733002: Revert "Enable MD by default on Windows for Canary/Dev and local builds." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: ui/base/material_design/material_design_controller.h
diff --git a/ui/base/material_design/material_design_controller.h b/ui/base/material_design/material_design_controller.h
index d0765a59ef212056ee383a83914e32586c1adf2c..46363f776b1a3622726865439f3f60def1e5db5c 100644
--- a/ui/base/material_design/material_design_controller.h
+++ b/ui/base/material_design/material_design_controller.h
@@ -31,10 +31,6 @@ class UI_BASE_EXPORT MaterialDesignController {
// Initializes |mode_|. Must be called before checking |mode_|.
static void Initialize();
- // Same as Initialize(), but uses |mode| (instead of DefaultMode()) as the
- // default value if no command-line switch or field trial overrides it.
- static void InitializeWithDefaultMode(Mode mode);
-
// Get the current Mode that should be used by the system.
static Mode GetMode();
@@ -45,6 +41,9 @@ class UI_BASE_EXPORT MaterialDesignController {
// should be extended to cover secondary UI.
static bool IsSecondaryUiMaterial();
+ // Returns the per-platform default material design variant.
+ static Mode DefaultMode();
+
private:
friend class test::MaterialDesignControllerTestAPI;
@@ -59,6 +58,10 @@ class UI_BASE_EXPORT MaterialDesignController {
// etc.). For example, this controls use of MD inside bubbles and dialogs.
static bool include_secondary_ui_;
+ // Declarations only. Do not allow construction of an object.
+ MaterialDesignController();
+ ~MaterialDesignController();
+
// Resets the initialization state to uninitialized. To be used by tests to
// allow calling Initialize() more than once.
static void Uninitialize();
@@ -67,10 +70,7 @@ class UI_BASE_EXPORT MaterialDesignController {
// used by tests to directly set the mode.
static void SetMode(Mode mode);
- // Returns the per-platform default material design variant.
- static Mode DefaultMode();
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(MaterialDesignController);
+ DISALLOW_COPY_AND_ASSIGN(MaterialDesignController);
};
} // namespace ui
« no previous file with comments | « chrome/browser/ui/startup/bad_flags_prompt.cc ('k') | ui/base/material_design/material_design_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698