| 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_
|
|
|