| OLD | NEW |
| 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/feedback/feedback_uploader_factory.h" | 5 #include "components/feedback/feedback_uploader_factory.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "chrome/browser/feedback/feedback_uploader.h" | |
| 9 #include "chrome/browser/feedback/feedback_uploader_chrome.h" | |
| 10 #include "chrome/browser/profiles/incognito_helpers.h" | 8 #include "chrome/browser/profiles/incognito_helpers.h" |
| 9 #include "components/feedback/feedback_uploader.h" |
| 10 #include "components/feedback/feedback_uploader_chrome.h" |
| 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 12 | 12 |
| 13 namespace feedback { | 13 namespace feedback { |
| 14 | 14 |
| 15 // static | 15 // static |
| 16 FeedbackUploaderFactory* FeedbackUploaderFactory::GetInstance() { | 16 FeedbackUploaderFactory* FeedbackUploaderFactory::GetInstance() { |
| 17 return Singleton<FeedbackUploaderFactory>::get(); | 17 return Singleton<FeedbackUploaderFactory>::get(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 // static | 20 // static |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 content::BrowserContext* context) const { | 35 content::BrowserContext* context) const { |
| 36 return new FeedbackUploaderChrome(context); | 36 return new FeedbackUploaderChrome(context); |
| 37 } | 37 } |
| 38 | 38 |
| 39 content::BrowserContext* FeedbackUploaderFactory::GetBrowserContextToUse( | 39 content::BrowserContext* FeedbackUploaderFactory::GetBrowserContextToUse( |
| 40 content::BrowserContext* context) const { | 40 content::BrowserContext* context) const { |
| 41 return chrome::GetBrowserContextOwnInstanceInIncognito(context); | 41 return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
| 42 } | 42 } |
| 43 | 43 |
| 44 } // namespace feedback | 44 } // namespace feedback |
| OLD | NEW |