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

Unified Diff: chrome/browser/chromeos/camera_presence_notifier.h

Issue 566863003: Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/chromeos/camera_presence_notifier.h
diff --git a/chrome/browser/chromeos/camera_presence_notifier.h b/chrome/browser/chromeos/camera_presence_notifier.h
index 7897a456a0e16a33198bbce7e350cee6a197d902..c7b9f2f20752c62cdd79f80f69d98c0f4ca5bafa 100644
--- a/chrome/browser/chromeos/camera_presence_notifier.h
+++ b/chrome/browser/chromeos/camera_presence_notifier.h
@@ -37,8 +37,6 @@ class CameraPresenceNotifier {
// Sends out a camera presence status notification.
void OnCameraPresenceCheckDone();
- base::WeakPtrFactory<CameraPresenceNotifier> weak_factory_;
-
bool camera_present_on_last_check_;
// Timer for camera check cycle.
@@ -46,6 +44,8 @@ class CameraPresenceNotifier {
ObserverList<Observer> observers_;
+ base::WeakPtrFactory<CameraPresenceNotifier> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(CameraPresenceNotifier);
};
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_manager.cc ('k') | chrome/browser/chromeos/camera_presence_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698