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

Unified Diff: components/feedback/feedback_common.h

Issue 2189353003: Sent feedback reports must respect the product ID if any was provided (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/feedback/feedback_common.h
diff --git a/components/feedback/feedback_common.h b/components/feedback/feedback_common.h
index fadb6bf38a4c6dee510e7b9784b3c3b3955520c2..dea86d23e91f4c63fa94e2aaa2b05356760be91d 100644
--- a/components/feedback/feedback_common.h
+++ b/components/feedback/feedback_common.h
@@ -65,6 +65,9 @@ class FeedbackCommon : public base::RefCountedThreadSafe<FeedbackCommon> {
// CompressLogs() must have already been called.
void PrepareReport(userfeedback::ExtensionSubmit* feedback_data) const;
+ // Returns true if a product ID was set in the feedback report.
+ bool HasProductId() const { return product_id_ != -1; }
rkc 2016/07/30 23:46:39 Could this be private? We can always move the frie
afakhry 2016/08/02 00:49:36 Done. I actually moved it to protected, just in ca
rkc 2016/08/02 00:57:58 If it does, we can move it to protected then :) We
afakhry 2016/08/02 23:56:02 Done.
+
// Getters
const std::string& category_tag() const { return category_tag_; }
const std::string& page_url() const { return page_url_; }

Powered by Google App Engine
This is Rietveld 408576698