diff options
Diffstat (limited to 'chrome/browser/device_orientation/provider.cc')
-rw-r--r-- | chrome/browser/device_orientation/provider.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/browser/device_orientation/provider.cc b/chrome/browser/device_orientation/provider.cc new file mode 100644 index 0000000..16b24b3 --- /dev/null +++ b/chrome/browser/device_orientation/provider.cc @@ -0,0 +1,24 @@ +// 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" + +namespace device_orientation { + +Provider* Provider::GetInstance() { + if (!instance_) + // TODO(hans) This is not finished. We will create an instance of the real + // Provider implementation once it is implemented. + instance_ = new Provider(); + return instance_; +} + +void Provider::SetInstanceForTests(Provider* provider) { + DCHECK(!instance_); + instance_ = provider; +} + +Provider* Provider::instance_ = NULL; + +} // namespace device_orientation |