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

Side by Side Diff: apps/pref_names.cc

Issue 17261016: When app shortcuts are enabled, do a once-off creation of all shortcuts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Fix tests. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « apps/pref_names.h ('k') | apps/prefs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/pref_names.h" 5 #include "apps/pref_names.h"
6 6
7 namespace apps { 7 namespace apps {
8 8
9 namespace prefs { 9 namespace prefs {
10 10
11 // If set, the user requested to launch the app with this extension id while 11 // If set, the user requested to launch the app with this extension id while
12 // in Metro mode, and then relaunched to Desktop mode to start it. 12 // in Metro mode, and then relaunched to Desktop mode to start it.
13 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart"; 13 const char kAppLaunchForMetroRestart[] = "apps.app_launch_for_metro_restart";
14 14
15 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers 15 // Set with |kAppLaunchForMetroRestart|, the profile whose loading triggers
16 // launch of the specified app when restarting Chrome in desktop mode. 16 // launch of the specified app when restarting Chrome in desktop mode.
17 const char kAppLaunchForMetroRestartProfile[] = 17 const char kAppLaunchForMetroRestartProfile[] =
18 "apps.app_launch_for_metro_restart_profile"; 18 "apps.app_launch_for_metro_restart_profile";
19 19
20 // A boolean that tracks whether the user has ever enabled the app launcher. 20 // A boolean that tracks whether the user has ever enabled the app launcher.
21 const char kAppLauncherHasBeenEnabled[] = 21 const char kAppLauncherHasBeenEnabled[] =
22 "apps.app_launcher.has_been_enabled"; 22 "apps.app_launcher.has_been_enabled";
23 23
24 // TODO(calamity): remove this pref since app launcher will always be 24 // TODO(calamity): remove this pref since app launcher will always be
25 // installed. 25 // installed.
26 // Local state caching knowledge of whether the app launcher is installed. 26 // Local state caching knowledge of whether the app launcher is installed.
27 const char kAppLauncherIsEnabled[] = 27 const char kAppLauncherIsEnabled[] =
28 "apps.app_launcher.should_show_apps_page"; 28 "apps.app_launcher.should_show_apps_page";
29 29
30 // A boolean that indicates whether app shortcuts have been created.
31 // On a transition from false to true, shortcuts are created for all apps.
32 const char kShortcutsHaveBeenCreated[] = "apps.shortcuts_have_been_created";
33
30 // A boolean identifying if we should show the app launcher promo or not. 34 // A boolean identifying if we should show the app launcher promo or not.
31 const char kShowAppLauncherPromo[] = "app_launcher.show_promo"; 35 const char kShowAppLauncherPromo[] = "app_launcher.show_promo";
32 36
33 } // namespace prefs 37 } // namespace prefs
34 38
35 } // namespace apps 39 } // namespace apps
OLDNEW
« no previous file with comments | « apps/pref_names.h ('k') | apps/prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698