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

Unified Diff: chrome/browser/feedback/feedback_profile_observer.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: chrome/browser/feedback/feedback_profile_observer.h
diff --git a/chrome/browser/feedback/feedback_profile_observer.h b/chrome/browser/feedback/feedback_profile_observer.h
deleted file mode 100644
index bde27ff3fa5199d6158cb95a1e0634e7763c39c4..0000000000000000000000000000000000000000
--- a/chrome/browser/feedback/feedback_profile_observer.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// 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_PROFILE_OBSERVER_H_
-#define CHROME_BROWSER_FEEDBACK_FEEDBACK_PROFILE_OBSERVER_H_
-
-#include "base/basictypes.h"
-#include "base/lazy_instance.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
-
-namespace content {
-class BrowserContext;
-}
-
-namespace feedback {
-
-class FeedbackUploader;
-
-// FeedbackProfileObserver waits on profile creation notifications to check
-// if the profile has any pending feedback reports to upload. If it does, it
-// queues those reports for upload.
-class FeedbackProfileObserver : public content::NotificationObserver {
- public:
- static void Initialize();
-
- private:
- friend struct base::DefaultLazyInstanceTraits<FeedbackProfileObserver>;
-
- FeedbackProfileObserver();
- virtual ~FeedbackProfileObserver();
-
- // content::NotificationObserver override
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- // Loads any unsent reports from disk and queues them to be uploaded in
- // the given browser context.
- void QueueUnsentReports(content::BrowserContext* context);
-
- static void QueueSingleReport(feedback::FeedbackUploader* uploader,
- const std::string& data);
-
- // Used to track creation of profiles so we can load any unsent reports
- // for that profile.
- content::NotificationRegistrar prefs_registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(FeedbackProfileObserver);
-};
-
-} // namespace feedback
-
-#endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_PROFILE_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698