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

Unified Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 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
Index: content/browser/gpu/gpu_data_manager_impl.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl.cc b/content/browser/gpu/gpu_data_manager_impl.cc
index 1afc18a3d675db02374d61f785bc26439022d500..589ff0bbe4ba12fbf6cfaeb5c666b299a53c1813 100644
--- a/content/browser/gpu/gpu_data_manager_impl.cc
+++ b/content/browser/gpu/gpu_data_manager_impl.cc
@@ -363,7 +363,7 @@ void GpuDataManagerImpl::UpdateGpuInfo(const GPUInfo& gpu_info) {
GetContentClient()->SetGpuInfo(my_gpu_info);
- if (gpu_blacklist_.get()) {
+ if (gpu_blacklist_) {
std::set<int> features = gpu_blacklist_->MakeDecision(
GpuControlList::kOsAny, std::string(), my_gpu_info);
if (update_histograms_)
@@ -371,7 +371,7 @@ void GpuDataManagerImpl::UpdateGpuInfo(const GPUInfo& gpu_info) {
UpdateBlacklistedFeatures(features);
}
- if (gpu_switching_list_.get()) {
+ if (gpu_switching_list_) {
std::set<int> option = gpu_switching_list_->MakeDecision(
GpuControlList::kOsAny, std::string(), my_gpu_info);
if (option.size() == 1) {
@@ -381,7 +381,7 @@ void GpuDataManagerImpl::UpdateGpuInfo(const GPUInfo& gpu_info) {
gpu_switching_ = static_cast<GpuSwitchingOption>(*(option.begin()));
}
}
- if (gpu_driver_bug_list_.get())
+ if (gpu_driver_bug_list_)
gpu_driver_bugs_ = gpu_driver_bug_list_->MakeDecision(
GpuControlList::kOsAny, std::string(), my_gpu_info);
@@ -588,14 +588,14 @@ void GpuDataManagerImpl::DisableHardwareAcceleration() {
}
std::string GpuDataManagerImpl::GetBlacklistVersion() const {
- if (gpu_blacklist_.get())
+ if (gpu_blacklist_)
return gpu_blacklist_->version();
return "0";
}
base::ListValue* GpuDataManagerImpl::GetBlacklistReasons() const {
ListValue* reasons = new ListValue();
- if (gpu_blacklist_.get())
+ if (gpu_blacklist_)
gpu_blacklist_->GetReasons(reasons);
return reasons;
}

Powered by Google App Engine
This is Rietveld 408576698