| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_diagnosis_runner.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_diagnosis_runner.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 BrowserContextDependencyManager::GetInstance()) { | 41 BrowserContextDependencyManager::GetInstance()) { |
| 42 DependsOn(extensions::ExtensionsBrowserClient::Get() | 42 DependsOn(extensions::ExtensionsBrowserClient::Get() |
| 43 ->GetExtensionSystemFactory()); | 43 ->GetExtensionSystemFactory()); |
| 44 DependsOn(extensions::FeedbackPrivateAPI::GetFactoryInstance()); | 44 DependsOn(extensions::FeedbackPrivateAPI::GetFactoryInstance()); |
| 45 } | 45 } |
| 46 | 46 |
| 47 virtual ~Factory() {} | 47 virtual ~Factory() {} |
| 48 | 48 |
| 49 // BrowserContextKeyedServiceFactory overrides: | 49 // BrowserContextKeyedServiceFactory overrides: |
| 50 virtual KeyedService* BuildServiceInstanceFor( | 50 virtual KeyedService* BuildServiceInstanceFor( |
| 51 content::BrowserContext* context) const OVERRIDE { | 51 content::BrowserContext* context) const override { |
| 52 Profile* profile = static_cast<Profile*>(context); | 52 Profile* profile = static_cast<Profile*>(context); |
| 53 return new KioskDiagnosisRunner(profile); | 53 return new KioskDiagnosisRunner(profile); |
| 54 } | 54 } |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 DISALLOW_COPY_AND_ASSIGN(Factory); | 57 DISALLOW_COPY_AND_ASSIGN(Factory); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // static | 60 // static |
| 61 void KioskDiagnosisRunner::Run(Profile* profile, | 61 void KioskDiagnosisRunner::Run(Profile* profile, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 feedback_data, | 120 feedback_data, |
| 121 base::Bind(&KioskDiagnosisRunner::OnFeedbackSent, | 121 base::Bind(&KioskDiagnosisRunner::OnFeedbackSent, |
| 122 weak_factory_.GetWeakPtr())); | 122 weak_factory_.GetWeakPtr())); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void KioskDiagnosisRunner::OnFeedbackSent(bool) { | 125 void KioskDiagnosisRunner::OnFeedbackSent(bool) { |
| 126 // Do nothing. | 126 // Do nothing. |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace chromeos | 129 } // namespace chromeos |
| OLD | NEW |