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

Unified Diff: athena/system/orientation_controller.h

Issue 490033003: Fixes three crashes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: athena/system/orientation_controller.h
diff --git a/athena/system/orientation_controller.h b/athena/system/orientation_controller.h
index 3a92913e631f7bc11cf29742fcea231157a3e52d..500f46d8537ad94befe7fcb65331fdc80ac67a79 100644
--- a/athena/system/orientation_controller.h
+++ b/athena/system/orientation_controller.h
@@ -28,19 +28,22 @@ class OrientationController
public:
OrientationController();
- void InitWith(scoped_refptr<base::TaskRunner> io_task_runner);
+ void InitWith(scoped_refptr<base::TaskRunner> file_task_runner);
+
+ // Stop watching the socket path.
+ void StopWatchingSocketPath();
private:
friend class base::RefCountedThreadSafe<OrientationController>;
virtual ~OrientationController();
- // Watch for the socket path to be created, called on the IO thread.
- void WatchForSocketPathOnIO();
- void OnFilePathChangedOnIO(const base::FilePath& path, bool error);
+ // Watch for the socket path to be created, called on the FILE thread.
+ void WatchForSocketPathOnFILE();
+ void OnFilePathChangedOnFILE(const base::FilePath& path, bool error);
// Overridden from device::DeviceSocketListener:
- virtual void OnDataAvailableOnIO(const void* data) OVERRIDE;
+ virtual void OnDataAvailableOnFILE(const void* data) OVERRIDE;
// Rotates the display to |rotation|, called on the UI thread.
void RotateOnUI(gfx::Display::Rotation rotation);

Powered by Google App Engine
This is Rietveld 408576698