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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 10115024: sensors: Remove prototype implementation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main_extra_parts_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 6a4a10f07b2a9e7a5c49a1b3cb6f27827d0a0b67..a9b9a7cb4b9b34481c00f60f0c9ba4ac4c6682b9 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -14,7 +14,6 @@
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
-#include "content/public/browser/sensors_provider.h"
#if defined(USE_TCMALLOC)
#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h"
@@ -161,26 +160,6 @@ bool HandleNonNavigationAboutURL(const GURL& url) {
#endif // OFFICIAL_BUILD
-#if defined(OS_CHROMEOS)
- if (host == chrome::kChromeUIRotateHost) {
- content::ScreenOrientation change = content::SCREEN_ORIENTATION_TOP;
- std::string query(url.query());
- if (query == "left") {
- change = content::SCREEN_ORIENTATION_LEFT;
- } else if (query == "right") {
- change = content::SCREEN_ORIENTATION_RIGHT;
- } else if (query == "top") {
- change = content::SCREEN_ORIENTATION_TOP;
- } else if (query == "bottom") {
- change = content::SCREEN_ORIENTATION_BOTTOM;
- } else {
- NOTREACHED() << "Unknown orientation";
- }
- content::SensorsProvider::GetInstance()->ScreenOrientationChanged(change);
- return true;
- }
-#endif
-
return false;
}
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main_extra_parts_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698