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

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

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 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 | Annotate | Revision Log
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 "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/prefs/pref_registry_simple.h" 8 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 } // namespace 61 } // namespace
62 62
63 // static 63 // static
64 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) { 64 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {
65 registry->RegisterInt64Pref(prefs::kLastAppListLaunchPing, 0); 65 registry->RegisterInt64Pref(prefs::kLastAppListLaunchPing, 0);
66 registry->RegisterIntegerPref(prefs::kAppListLaunchCount, 0); 66 registry->RegisterIntegerPref(prefs::kAppListLaunchCount, 0);
67 registry->RegisterInt64Pref(prefs::kLastAppListAppLaunchPing, 0); 67 registry->RegisterInt64Pref(prefs::kLastAppListAppLaunchPing, 0);
68 registry->RegisterIntegerPref(prefs::kAppListAppLaunchCount, 0); 68 registry->RegisterIntegerPref(prefs::kAppListAppLaunchCount, 0);
69 registry->RegisterStringPref(prefs::kAppListProfile, ""); 69 registry->RegisterStringPref(prefs::kAppListProfile, std::string());
70 #if defined(OS_WIN) 70 #if defined(OS_WIN)
71 registry->RegisterBooleanPref(prefs::kRestartWithAppList, false); 71 registry->RegisterBooleanPref(prefs::kRestartWithAppList, false);
72 #endif 72 #endif
73 } 73 }
74 74
75 void AppListService::Init(Profile* initial_profile) {} 75 void AppListService::Init(Profile* initial_profile) {}
76 76
77 base::FilePath AppListService::GetAppListProfilePath( 77 base::FilePath AppListService::GetAppListProfilePath(
78 const base::FilePath& user_data_dir) { 78 const base::FilePath& user_data_dir) {
79 PrefService* local_state = g_browser_process->local_state(); 79 PrefService* local_state = g_browser_process->local_state();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 void AppListService::OnProfileNameChanged(const base::FilePath& profile_path, 142 void AppListService::OnProfileNameChanged(const base::FilePath& profile_path,
143 const string16& profile_name) {} 143 const string16& profile_name) {}
144 144
145 void AppListService::OnProfileAvatarChanged( 145 void AppListService::OnProfileAvatarChanged(
146 const base::FilePath& profile_path) {} 146 const base::FilePath& profile_path) {}
147 147
148 AppListControllerDelegate* AppListService::CreateControllerDelegate() { 148 AppListControllerDelegate* AppListService::CreateControllerDelegate() {
149 return NULL; 149 return NULL;
150 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698