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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/memory/singleton.h" 6 #include "base/memory/singleton.h"
7 #include "chrome/browser/ui/app_list/app_list_service.h" 7 #include "chrome/browser/ui/app_list/app_list_service.h"
8 8
9 namespace { 9 namespace {
10 10
11 class AppListServiceDisabled : public AppListService { 11 class AppListServiceDisabled : public AppListService {
12 public: 12 public:
13 static AppListServiceDisabled* GetInstance() { 13 static AppListServiceDisabled* GetInstance() {
14 return Singleton<AppListServiceDisabled, 14 return base::Singleton<
15 LeakySingletonTraits<AppListServiceDisabled> >::get(); 15 AppListServiceDisabled,
16 base::LeakySingletonTraits<AppListServiceDisabled>>::get();
16 } 17 }
17 18
18 private: 19 private:
19 friend struct DefaultSingletonTraits<AppListServiceDisabled>; 20 friend struct base::DefaultSingletonTraits<AppListServiceDisabled>;
20 21
21 AppListServiceDisabled() {} 22 AppListServiceDisabled() {}
22 23
23 // AppListService overrides: 24 // AppListService overrides:
24 void SetAppListNextPaintCallback(void (*callback)()) override {} 25 void SetAppListNextPaintCallback(void (*callback)()) override {}
25 void Init(Profile* initial_profile) override {} 26 void Init(Profile* initial_profile) override {}
26 27
27 base::FilePath GetProfilePath(const base::FilePath& user_data_dir) override { 28 base::FilePath GetProfilePath(const base::FilePath& user_data_dir) override {
28 return base::FilePath(); 29 return base::FilePath();
29 } 30 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 69
69 // static 70 // static
70 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {} 71 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {}
71 72
72 // static 73 // static
73 bool AppListService::HandleLaunchCommandLine( 74 bool AppListService::HandleLaunchCommandLine(
74 const base::CommandLine& command_line, 75 const base::CommandLine& command_line,
75 Profile* launch_profile) { 76 Profile* launch_profile) {
76 return false; 77 return false;
77 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698