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

Side by Side Diff: chrome/browser/chromeos/app_mode/kiosk_app_update_service.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 "chrome/browser/chromeos/app_mode/kiosk_app_update_service.h" 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_update_service.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/app_mode/app_mode_utils.h" 8 #include "chrome/browser/app_mode/app_mode_utils.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/browser_process_platform_part_chromeos.h" 10 #include "chrome/browser/browser_process_platform_part_chromeos.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 DCHECK(chrome::IsRunningInForcedAppMode()); 158 DCHECK(chrome::IsRunningInForcedAppMode());
159 if (!chrome::IsRunningInForcedAppMode()) 159 if (!chrome::IsRunningInForcedAppMode())
160 return NULL; 160 return NULL;
161 161
162 return static_cast<KioskAppUpdateService*>( 162 return static_cast<KioskAppUpdateService*>(
163 GetInstance()->GetServiceForBrowserContext(profile, true)); 163 GetInstance()->GetServiceForBrowserContext(profile, true));
164 } 164 }
165 165
166 // static 166 // static
167 KioskAppUpdateServiceFactory* KioskAppUpdateServiceFactory::GetInstance() { 167 KioskAppUpdateServiceFactory* KioskAppUpdateServiceFactory::GetInstance() {
168 return Singleton<KioskAppUpdateServiceFactory>::get(); 168 return base::Singleton<KioskAppUpdateServiceFactory>::get();
169 } 169 }
170 170
171 KeyedService* KioskAppUpdateServiceFactory::BuildServiceInstanceFor( 171 KeyedService* KioskAppUpdateServiceFactory::BuildServiceInstanceFor(
172 content::BrowserContext* context) const { 172 content::BrowserContext* context) const {
173 return new KioskAppUpdateService( 173 return new KioskAppUpdateService(
174 Profile::FromBrowserContext(context), 174 Profile::FromBrowserContext(context),
175 g_browser_process->platform_part()->automatic_reboot_manager()); 175 g_browser_process->platform_part()->automatic_reboot_manager());
176 } 176 }
177 177
178 } // namespace chromeos 178 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698