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

Unified Diff: chrome/browser/device_orientation/provider.cc

Issue 6586001: Move appcache/file_sytem/device_orientation subdirectories of chrome\browser ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 10 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 | « chrome/browser/device_orientation/provider.h ('k') | chrome/browser/device_orientation/provider_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/device_orientation/provider.cc
===================================================================
--- chrome/browser/device_orientation/provider.cc (revision 75978)
+++ chrome/browser/device_orientation/provider.cc (working copy)
@@ -1,53 +0,0 @@
-// Copyright (c) 2010 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.
-
-#include "chrome/browser/device_orientation/provider.h"
-
-#include "base/logging.h"
-#include "chrome/browser/browser_thread.h"
-
-#if defined(OS_MACOSX)
-#include "chrome/browser/device_orientation/accelerometer_mac.h"
-#endif
-
-#include "chrome/browser/device_orientation/data_fetcher.h"
-#include "chrome/browser/device_orientation/provider_impl.h"
-
-namespace device_orientation {
-
-Provider* Provider::GetInstance() {
- if (!instance_) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- const ProviderImpl::DataFetcherFactory default_factories[] = {
-#if defined(OS_MACOSX)
- AccelerometerMac::Create,
-#endif
- NULL
- };
-
- instance_ = new ProviderImpl(default_factories);
- }
- return instance_;
-}
-
-void Provider::SetInstanceForTests(Provider* provider) {
- DCHECK(!instance_);
- instance_ = provider;
-}
-
-Provider* Provider::GetInstanceForTests() {
- return instance_;
-}
-
-Provider::Provider() {
-}
-
-Provider::~Provider() {
- DCHECK(instance_ == this);
- instance_ = NULL;
-}
-
-Provider* Provider::instance_ = NULL;
-
-} // namespace device_orientation
« no previous file with comments | « chrome/browser/device_orientation/provider.h ('k') | chrome/browser/device_orientation/provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698