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

Unified Diff: components/arc/storage_manager/arc_storage_manager.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix Created 4 years, 5 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: components/arc/storage_manager/arc_storage_manager.cc
diff --git a/components/arc/storage_manager/arc_storage_manager.cc b/components/arc/storage_manager/arc_storage_manager.cc
index 6bc2cf52e25dae1efe8fd5b89f592a45580a0ebe..b284d1af92b77edf6af35ef024864c6cb26a23af 100644
--- a/components/arc/storage_manager/arc_storage_manager.cc
+++ b/components/arc/storage_manager/arc_storage_manager.cc
@@ -40,7 +40,7 @@ ArcStorageManager* ArcStorageManager::Get() {
}
bool ArcStorageManager::OpenPrivateVolumeSettings() {
- auto storage_manager_instance = GetStorageManagerInstance();
+ auto* storage_manager_instance = GetStorageManagerInstance();
if (!storage_manager_instance) {
return false;
}
@@ -50,7 +50,7 @@ bool ArcStorageManager::OpenPrivateVolumeSettings() {
bool ArcStorageManager::GetApplicationsSize(
const GetApplicationsSizeCallback& callback) {
- auto storage_manager_instance = GetStorageManagerInstance();
+ auto* storage_manager_instance = GetStorageManagerInstance();
if (!storage_manager_instance) {
return false;
}
@@ -60,7 +60,7 @@ bool ArcStorageManager::GetApplicationsSize(
bool ArcStorageManager::DeleteApplicationsCache(
const base::Callback<void()>& callback) {
- auto storage_manager_instance = GetStorageManagerInstance();
+ auto* storage_manager_instance = GetStorageManagerInstance();
if (!storage_manager_instance) {
return false;
}
@@ -69,8 +69,9 @@ bool ArcStorageManager::DeleteApplicationsCache(
}
mojom::StorageManagerInstance* ArcStorageManager::GetStorageManagerInstance() {
- auto bridge_service = arc_bridge_service();
- auto storage_manager_instance = bridge_service->storage_manager()->instance();
+ auto* bridge_service = arc_bridge_service();
+ auto* storage_manager_instance =
+ bridge_service->storage_manager()->instance();
if (!storage_manager_instance) {
DLOG(WARNING) << "ARC storage manager instance is not ready.";
return nullptr;
« no previous file with comments | « components/arc/bluetooth/arc_bluetooth_bridge.cc ('k') | components/autofill/content/renderer/form_autofill_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698