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

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

Issue 130233002: Fix Feedback to use it's own profile in incognito/guest sessions and not redirect to the default pr… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | chrome/browser/resources/feedback/manifest.json » ('j') | 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/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "chrome/common/extensions/api/feedback_private.h" 10 #include "chrome/common/extensions/api/feedback_private.h"
(...skipping 21 matching lines...) Expand all
32 static ProfileKeyedAPIFactory<FeedbackPrivateAPI>* GetFactoryInstance(); 32 static ProfileKeyedAPIFactory<FeedbackPrivateAPI>* GetFactoryInstance();
33 33
34 private: 34 private:
35 friend class ProfileKeyedAPIFactory<FeedbackPrivateAPI>; 35 friend class ProfileKeyedAPIFactory<FeedbackPrivateAPI>;
36 36
37 // ProfileKeyedAPI implementation. 37 // ProfileKeyedAPI implementation.
38 static const char* service_name() { 38 static const char* service_name() {
39 return "FeedbackPrivateAPI"; 39 return "FeedbackPrivateAPI";
40 } 40 }
41 41
42 static const bool kServiceRedirectedInIncognito = true; 42 static const bool kServiceHasOwnInstanceInIncognito = true;
43 43
44 Profile* const profile_; 44 Profile* const profile_;
45 FeedbackService* service_; 45 FeedbackService* service_;
46 }; 46 };
47 47
48 // Feedback strings. 48 // Feedback strings.
49 class FeedbackPrivateGetStringsFunction : public ChromeSyncExtensionFunction { 49 class FeedbackPrivateGetStringsFunction : public ChromeSyncExtensionFunction {
50 public: 50 public:
51 DECLARE_EXTENSION_FUNCTION("feedbackPrivate.getStrings", 51 DECLARE_EXTENSION_FUNCTION("feedbackPrivate.getStrings",
52 FEEDBACKPRIVATE_GETSTRINGS) 52 FEEDBACKPRIVATE_GETSTRINGS)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual ~FeedbackPrivateSendFeedbackFunction() {} 101 virtual ~FeedbackPrivateSendFeedbackFunction() {}
102 virtual bool RunImpl() OVERRIDE; 102 virtual bool RunImpl() OVERRIDE;
103 103
104 private: 104 private:
105 void OnCompleted(bool success); 105 void OnCompleted(bool success);
106 }; 106 };
107 107
108 } // namespace extensions 108 } // namespace extensions
109 109
110 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _ 110 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/feedback/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698