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

Side by Side Diff: chrome/browser/ui/ash/chrome_launcher_prefs.cc

Issue 1849623002: Remove unused ash::SHELF_ALIGNMENT_TOP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" 5 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 36
37 const char kPinnedAppsPrefAppIDPath[] = "id"; 37 const char kPinnedAppsPrefAppIDPath[] = "id";
38 const char kPinnedAppsPrefPinnedByPolicy[] = "pinned_by_policy"; 38 const char kPinnedAppsPrefPinnedByPolicy[] = "pinned_by_policy";
39 39
40 const char kShelfAutoHideBehaviorAlways[] = "Always"; 40 const char kShelfAutoHideBehaviorAlways[] = "Always";
41 const char kShelfAutoHideBehaviorNever[] = "Never"; 41 const char kShelfAutoHideBehaviorNever[] = "Never";
42 42
43 const char kShelfAlignmentBottom[] = "Bottom"; 43 const char kShelfAlignmentBottom[] = "Bottom";
44 const char kShelfAlignmentLeft[] = "Left"; 44 const char kShelfAlignmentLeft[] = "Left";
45 const char kShelfAlignmentRight[] = "Right"; 45 const char kShelfAlignmentRight[] = "Right";
46 const char kShelfAlignmentTop[] = "Top";
47 46
48 void RegisterChromeLauncherUserPrefs( 47 void RegisterChromeLauncherUserPrefs(
49 user_prefs::PrefRegistrySyncable* registry) { 48 user_prefs::PrefRegistrySyncable* registry) {
50 // TODO: If we want to support multiple profiles this will likely need to be 49 // TODO: If we want to support multiple profiles this will likely need to be
51 // pushed to local state and we'll need to track profile per item. 50 // pushed to local state and we'll need to track profile per item.
52 registry->RegisterIntegerPref( 51 registry->RegisterIntegerPref(
53 prefs::kShelfChromeIconIndex, 52 prefs::kShelfChromeIconIndex,
54 0, 53 0,
55 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 54 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
56 registry->RegisterListPref(prefs::kPinnedLauncherApps, 55 registry->RegisterListPref(prefs::kPinnedLauncherApps,
(...skipping 14 matching lines...) Expand all
71 registry->RegisterBooleanPref(prefs::kShowLogoutButtonInTray, false); 70 registry->RegisterBooleanPref(prefs::kShowLogoutButtonInTray, false);
72 } 71 }
73 72
74 base::DictionaryValue* CreateAppDict(const std::string& app_id) { 73 base::DictionaryValue* CreateAppDict(const std::string& app_id) {
75 scoped_ptr<base::DictionaryValue> app_value(new base::DictionaryValue); 74 scoped_ptr<base::DictionaryValue> app_value(new base::DictionaryValue);
76 app_value->SetString(kPinnedAppsPrefAppIDPath, app_id); 75 app_value->SetString(kPinnedAppsPrefAppIDPath, app_id);
77 return app_value.release(); 76 return app_value.release();
78 } 77 }
79 78
80 } // namespace ash 79 } // namespace ash
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_launcher_prefs.h ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698