| Index: content/browser/device_orientation/data_fetcher_impl_android.cc
|
| diff --git a/content/browser/device_orientation/data_fetcher_impl_android.cc b/content/browser/device_orientation/data_fetcher_impl_android.cc
|
| index def5d8a3d7e807213c04be86a2f7fc638eda7b17..069454db1d7faafc243b2bf02287c1148eab600d 100644
|
| --- a/content/browser/device_orientation/data_fetcher_impl_android.cc
|
| +++ b/content/browser/device_orientation/data_fetcher_impl_android.cc
|
| @@ -59,11 +59,11 @@ const Orientation* DataFetcherImplAndroid::GetOrientation() {
|
| // Do we have a new orientation value? (It's safe to do this outside the lock
|
| // because we only skip the lock if the value is null. We always enter the
|
| // lock if we're going to make use of the new value.)
|
| - if (next_orientation_) {
|
| + if (next_orientation_.get()) {
|
| base::AutoLock autolock(next_orientation_lock_);
|
| next_orientation_.swap(current_orientation_);
|
| }
|
| - if (!current_orientation_)
|
| + if (!current_orientation_.get())
|
| return new Orientation();
|
| return current_orientation_.get();
|
| }
|
|
|