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/extensions/api/feedback_private/feedback_service.h" | 5 #include "chrome/browser/extensions/api/feedback_private/feedback_service.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
11 #include "chrome/browser/signin/signin_manager_factory.h" | 11 #include "chrome/browser/signin/signin_manager_factory.h" |
12 #include "components/signin/core/browser/signin_manager.h" | 12 #include "components/signin/core/browser/signin_manager.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 class FeedbackServiceImpl | 16 class FeedbackServiceImpl |
17 : public FeedbackService, | 17 : public FeedbackService, |
18 public base::SupportsWeakPtr<FeedbackServiceImpl> { | 18 public base::SupportsWeakPtr<FeedbackServiceImpl> { |
19 public: | 19 public: |
20 FeedbackServiceImpl(); | 20 FeedbackServiceImpl(); |
21 virtual ~FeedbackServiceImpl(); | 21 virtual ~FeedbackServiceImpl(); |
22 | 22 |
23 virtual std::string GetUserEmail() OVERRIDE; | 23 virtual std::string GetUserEmail() override; |
24 virtual void GetHistograms(std::string* histograms) OVERRIDE; | 24 virtual void GetHistograms(std::string* histograms) override; |
25 | 25 |
26 private: | 26 private: |
27 // Overridden from FeedbackService: | 27 // Overridden from FeedbackService: |
28 virtual base::WeakPtr<FeedbackService> GetWeakPtr() OVERRIDE; | 28 virtual base::WeakPtr<FeedbackService> GetWeakPtr() override; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(FeedbackServiceImpl); | 30 DISALLOW_COPY_AND_ASSIGN(FeedbackServiceImpl); |
31 }; | 31 }; |
32 | 32 |
33 FeedbackService* FeedbackService::CreateInstance() { | 33 FeedbackService* FeedbackService::CreateInstance() { |
34 return new FeedbackServiceImpl; | 34 return new FeedbackServiceImpl; |
35 } | 35 } |
36 | 36 |
37 FeedbackServiceImpl::FeedbackServiceImpl() { | 37 FeedbackServiceImpl::FeedbackServiceImpl() { |
38 } | 38 } |
(...skipping 14 matching lines...) Expand all Loading... |
53 } | 53 } |
54 | 54 |
55 void FeedbackServiceImpl::GetHistograms(std::string* histograms) { | 55 void FeedbackServiceImpl::GetHistograms(std::string* histograms) { |
56 } | 56 } |
57 | 57 |
58 base::WeakPtr<FeedbackService> FeedbackServiceImpl::GetWeakPtr() { | 58 base::WeakPtr<FeedbackService> FeedbackServiceImpl::GetWeakPtr() { |
59 return AsWeakPtr(); | 59 return AsWeakPtr(); |
60 } | 60 } |
61 | 61 |
62 } // namespace extensions | 62 } // namespace extensions |
OLD | NEW |