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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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 "chrome/browser/ui/app_list/app_list_service.h" 5 #include "chrome/browser/ui/app_list/app_list_service.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/prefs/pref_registry_simple.h"
12 #include "base/process/process_info.h" 11 #include "base/process/process_info.h"
13 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
14 #include "base/time/time.h" 13 #include "base/time/time.h"
15 #include "build/build_config.h" 14 #include "build/build_config.h"
16 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
18 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
18 #include "components/prefs/pref_registry_simple.h"
19 19
20 namespace { 20 namespace {
21 21
22 enum StartupType { 22 enum StartupType {
23 COLD_START, 23 COLD_START,
24 WARM_START, 24 WARM_START,
25 WARM_START_FAST, 25 WARM_START_FAST,
26 }; 26 };
27 27
28 // For when an app list show request is received via CommandLine. Indicates 28 // For when an app list show request is received via CommandLine. Indicates
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 if (!command_line.HasSwitch(switches::kShowAppList)) 167 if (!command_line.HasSwitch(switches::kShowAppList))
168 return false; 168 return false;
169 169
170 // The --show-app-list switch is used for shortcuts on the native desktop. 170 // The --show-app-list switch is used for shortcuts on the native desktop.
171 AppListService* service = Get(chrome::HOST_DESKTOP_TYPE_NATIVE); 171 AppListService* service = Get(chrome::HOST_DESKTOP_TYPE_NATIVE);
172 DCHECK(service); 172 DCHECK(service);
173 RecordStartupInfo(service, command_line, launch_profile); 173 RecordStartupInfo(service, command_line, launch_profile);
174 service->ShowForProfile(launch_profile); 174 service->ShowForProfile(launch_profile);
175 return true; 175 return true;
176 } 176 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_prefs_factory.cc ('k') | chrome/browser/ui/app_list/app_list_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698