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

Side by Side Diff: chrome/browser/extensions/api/feedback_private/feedback_private_api.h

Issue 23523033: Fix Chrome crash when opening feedback in incognito. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H_
7 7
8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" 8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 #include "chrome/common/extensions/api/feedback_private.h" 10 #include "chrome/common/extensions/api/feedback_private.h"
(...skipping 20 matching lines...) Expand all
31 static ProfileKeyedAPIFactory<FeedbackPrivateAPI>* GetFactoryInstance(); 31 static ProfileKeyedAPIFactory<FeedbackPrivateAPI>* GetFactoryInstance();
32 32
33 private: 33 private:
34 friend class ProfileKeyedAPIFactory<FeedbackPrivateAPI>; 34 friend class ProfileKeyedAPIFactory<FeedbackPrivateAPI>;
35 35
36 // ProfileKeyedAPI implementation. 36 // ProfileKeyedAPI implementation.
37 static const char* service_name() { 37 static const char* service_name() {
38 return "FeedbackPrivateAPI"; 38 return "FeedbackPrivateAPI";
39 } 39 }
40 40
41 static const bool kServiceRedirectedInIncognito = true;
42
41 Profile* const profile_; 43 Profile* const profile_;
42 FeedbackService* service_; 44 FeedbackService* service_;
43 }; 45 };
44 46
45 // Feedback strings. 47 // Feedback strings.
46 class FeedbackPrivateGetStringsFunction : public SyncExtensionFunction { 48 class FeedbackPrivateGetStringsFunction : public SyncExtensionFunction {
47 public: 49 public:
48 DECLARE_EXTENSION_FUNCTION("feedbackPrivate.getStrings", 50 DECLARE_EXTENSION_FUNCTION("feedbackPrivate.getStrings",
49 FEEDBACKPRIVATE_GETSTRINGS) 51 FEEDBACKPRIVATE_GETSTRINGS)
50 52
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual ~FeedbackPrivateSendFeedbackFunction() {} 91 virtual ~FeedbackPrivateSendFeedbackFunction() {}
90 virtual bool RunImpl() OVERRIDE; 92 virtual bool RunImpl() OVERRIDE;
91 93
92 private: 94 private:
93 void OnCompleted(bool success); 95 void OnCompleted(bool success);
94 }; 96 };
95 97
96 } // namespace extensions 98 } // namespace extensions
97 99
98 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _ 100 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698