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

Unified Diff: chrome/browser/ui/ash/chrome_launcher_prefs.cc

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again 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/ash/chrome_launcher_prefs.cc
diff --git a/chrome/browser/ui/ash/chrome_launcher_prefs.cc b/chrome/browser/ui/ash/chrome_launcher_prefs.cc
index bca3ef14cff6bf5b5e31abb0e81f135554e86044..80035443341bb1581e4bcb8b9537cb7969606033 100644
--- a/chrome/browser/ui/ash/chrome_launcher_prefs.cc
+++ b/chrome/browser/ui/ash/chrome_launcher_prefs.cc
@@ -120,24 +120,24 @@ void SetPerDisplayPref(PrefService* prefs,
pref_dictionary->SetStringWithoutPathExpansion(pref_key, value);
}
-wm::ShelfAlignment AlignmentFromPref(const std::string& value) {
+ShelfAlignment AlignmentFromPref(const std::string& value) {
if (value == kShelfAlignmentLeft)
- return wm::SHELF_ALIGNMENT_LEFT;
+ return SHELF_ALIGNMENT_LEFT;
else if (value == kShelfAlignmentRight)
- return wm::SHELF_ALIGNMENT_RIGHT;
+ return SHELF_ALIGNMENT_RIGHT;
// Default to bottom.
- return wm::SHELF_ALIGNMENT_BOTTOM;
+ return SHELF_ALIGNMENT_BOTTOM;
}
-const char* AlignmentToPref(wm::ShelfAlignment alignment) {
+const char* AlignmentToPref(ShelfAlignment alignment) {
switch (alignment) {
- case wm::SHELF_ALIGNMENT_BOTTOM:
+ case SHELF_ALIGNMENT_BOTTOM:
return kShelfAlignmentBottom;
- case wm::SHELF_ALIGNMENT_LEFT:
+ case SHELF_ALIGNMENT_LEFT:
return kShelfAlignmentLeft;
- case wm::SHELF_ALIGNMENT_RIGHT:
+ case SHELF_ALIGNMENT_RIGHT:
return kShelfAlignmentRight;
- case wm::SHELF_ALIGNMENT_BOTTOM_LOCKED:
+ case SHELF_ALIGNMENT_BOTTOM_LOCKED:
// This should not be a valid preference option for now. We only want to
// lock the shelf during login or when adding a user.
return nullptr;
@@ -267,8 +267,7 @@ void SetShelfAutoHideBehaviorPref(PrefService* prefs,
}
}
-wm::ShelfAlignment GetShelfAlignmentPref(PrefService* prefs,
- int64_t display_id) {
+ShelfAlignment GetShelfAlignmentPref(PrefService* prefs, int64_t display_id) {
DCHECK_GE(display_id, 0);
// See comment in |kShelfAlignment| as to why we consider two prefs.
@@ -278,7 +277,7 @@ wm::ShelfAlignment GetShelfAlignmentPref(PrefService* prefs,
void SetShelfAlignmentPref(PrefService* prefs,
int64_t display_id,
- wm::ShelfAlignment alignment) {
+ ShelfAlignment alignment) {
DCHECK_GE(display_id, 0);
const char* value = AlignmentToPref(alignment);
« no previous file with comments | « chrome/browser/ui/ash/chrome_launcher_prefs.h ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698