| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/signin/about_signin_internals_factory.h" | 5 #include "chrome/browser/signin/about_signin_internals_factory.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/browser/profiles/profile_dependency_manager.h" | 8 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 9 #include "chrome/browser/signin/about_signin_internals.h" | 9 #include "chrome/browser/signin/about_signin_internals.h" |
| 10 #include "chrome/browser/signin/signin_internals_util.h" | 10 #include "chrome/browser/signin/signin_internals_util.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 user_prefs->RegisterStringPref( | 65 user_prefs->RegisterStringPref( |
| 66 value.c_str(), std::string(), PrefRegistrySyncable::UNSYNCABLE_PREF); | 66 value.c_str(), std::string(), PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 67 user_prefs->RegisterStringPref( | 67 user_prefs->RegisterStringPref( |
| 68 status.c_str(), std::string(), PrefRegistrySyncable::UNSYNCABLE_PREF); | 68 status.c_str(), std::string(), PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 69 user_prefs->RegisterStringPref( | 69 user_prefs->RegisterStringPref( |
| 70 time.c_str(), std::string(), PrefRegistrySyncable::UNSYNCABLE_PREF); | 70 time.c_str(), std::string(), PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 71 } | 71 } |
| 72 } | 72 } |
| 73 | 73 |
| 74 ProfileKeyedService* AboutSigninInternalsFactory::BuildServiceInstanceFor( | 74 ProfileKeyedService* AboutSigninInternalsFactory::BuildServiceInstanceFor( |
| 75 Profile* profile) const { | 75 content::BrowserContext* profile) const { |
| 76 AboutSigninInternals* service = new AboutSigninInternals(); | 76 AboutSigninInternals* service = new AboutSigninInternals(); |
| 77 service->Initialize(profile); | 77 service->Initialize(static_cast<Profile*>(profile)); |
| 78 return service; | 78 return service; |
| 79 } | 79 } |
| OLD | NEW |