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

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

Issue 2065243002: Placing SRT Prompt on Feedback form behind Finch feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/feedback_private/feedback_private_api.cc » ('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 "base/feature_list.h"
8 #include "chrome/browser/extensions/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
9 #include "chrome/common/extensions/api/feedback_private.h" 10 #include "chrome/common/extensions/api/feedback_private.h"
10 #include "extensions/browser/browser_context_keyed_api_factory.h" 11 #include "extensions/browser/browser_context_keyed_api_factory.h"
11 #include "extensions/browser/extension_function.h" 12 #include "extensions/browser/extension_function.h"
12 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
13 14
14 namespace extensions { 15 namespace extensions {
15 16
17 // Allows enabling/disabling SRT Prompt as a Variations feature.
18 extern const base::Feature kSrtPromptOnFeedbackForm;
afakhry 2016/06/22 12:58:42 If it's only needed in feedback_private_api.cc, is
19
16 class FeedbackService; 20 class FeedbackService;
17 21
18 class FeedbackPrivateAPI : public BrowserContextKeyedAPI { 22 class FeedbackPrivateAPI : public BrowserContextKeyedAPI {
19 public: 23 public:
20 explicit FeedbackPrivateAPI(content::BrowserContext* context); 24 explicit FeedbackPrivateAPI(content::BrowserContext* context);
21 ~FeedbackPrivateAPI() override; 25 ~FeedbackPrivateAPI() override;
22 26
23 FeedbackService* GetService() const; 27 FeedbackService* GetService() const;
24 28
25 void RequestFeedback(const std::string& description_template, 29 void RequestFeedback(const std::string& description_template,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 FEEDBACKPRIVATE_LOGSRTPROMPTRESULT); 120 FEEDBACKPRIVATE_LOGSRTPROMPTRESULT);
117 121
118 protected: 122 protected:
119 ~FeedbackPrivateLogSrtPromptResultFunction() override {} 123 ~FeedbackPrivateLogSrtPromptResultFunction() override {}
120 AsyncExtensionFunction::ResponseAction Run() override; 124 AsyncExtensionFunction::ResponseAction Run() override;
121 }; 125 };
122 126
123 } // namespace extensions 127 } // namespace extensions
124 128
125 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _ 129 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/feedback_private/feedback_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698