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

Unified Diff: components/feedback/feedback_data.h

Issue 225183018: Move feedback files into src/components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change to moving all of feedback (except syslog collection) Created 6 years, 8 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_data.h
diff --git a/chrome/browser/feedback/feedback_data.h b/components/feedback/feedback_data.h
similarity index 92%
rename from chrome/browser/feedback/feedback_data.h
rename to components/feedback/feedback_data.h
index bc566f5f9cd352a97007b84e8a06bfbbc8538952..713257ce4ce956702411409537d75ff67d1b818e 100644
--- a/chrome/browser/feedback/feedback_data.h
+++ b/components/feedback/feedback_data.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_
-#define CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_
+#ifndef COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_
+#define COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_
#include <map>
#include <string>
@@ -17,7 +17,9 @@ namespace base {
class FilePath;
class RefCountedString;
}
-class Profile;
+namespace content {
+class BrowserContext;
+}
class FeedbackData : public base::RefCountedThreadSafe<FeedbackData> {
public:
@@ -62,7 +64,7 @@ class FeedbackData : public base::RefCountedThreadSafe<FeedbackData> {
void SendReport();
// Getters
- Profile* profile() const { return profile_; }
+ content::BrowserContext* context() const { return context_; }
const std::string& category_tag() const { return category_tag_; }
const std::string& page_url() const { return page_url_; }
const std::string& description() const { return description_; }
@@ -81,7 +83,7 @@ class FeedbackData : public base::RefCountedThreadSafe<FeedbackData> {
}
// Setters
- void set_profile(Profile* profile) { profile_ = profile; }
+ void set_context(content::BrowserContext* context) { context_ = context; }
void set_category_tag(const std::string& category_tag) {
category_tag_ = category_tag;
}
@@ -112,7 +114,7 @@ class FeedbackData : public base::RefCountedThreadSafe<FeedbackData> {
void OnGetTraceData(int trace_id,
scoped_refptr<base::RefCountedString> trace_data);
- Profile* profile_;
+ content::BrowserContext* context_;
std::string category_tag_;
std::string page_url_;
@@ -143,4 +145,4 @@ class FeedbackData : public base::RefCountedThreadSafe<FeedbackData> {
DISALLOW_COPY_AND_ASSIGN(FeedbackData);
};
-#endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_
+#endif // COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698