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

Side by Side Diff: device/gamepad/gamepad_data_fetcher_manager.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/gamepad/gamepad_data_fetcher_manager.h" 5 #include "device/gamepad/gamepad_data_fetcher_manager.h"
6 6
7 #include "device/gamepad/gamepad_data_fetcher.h" 7 #include "device/gamepad/gamepad_data_fetcher.h"
8 #include "device/gamepad/gamepad_platform_data_fetcher.h" 8 #include "device/gamepad/gamepad_platform_data_fetcher.h"
9 9
10 namespace device { 10 namespace device {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } else { 46 } else {
47 ++it; 47 ++it;
48 } 48 }
49 } 49 }
50 } 50 }
51 51
52 void GamepadDataFetcherManager::InitializeProvider(GamepadProvider* provider) { 52 void GamepadDataFetcherManager::InitializeProvider(GamepadProvider* provider) {
53 DCHECK(!provider_); 53 DCHECK(!provider_);
54 54
55 provider_ = provider; 55 provider_ = provider;
56 for (const auto& it : factories_) { 56 for (auto* it : factories_) {
57 provider_->AddGamepadDataFetcher(it->CreateDataFetcher()); 57 provider_->AddGamepadDataFetcher(it->CreateDataFetcher());
58 } 58 }
59 } 59 }
60 60
61 void GamepadDataFetcherManager::ClearProvider() { 61 void GamepadDataFetcherManager::ClearProvider() {
62 provider_ = nullptr; 62 provider_ = nullptr;
63 } 63 }
64 64
65 } // namespace device 65 } // namespace device
OLDNEW
« no previous file with comments | « device/battery/battery_status_manager_linux_unittest.cc ('k') | extensions/browser/api/system_display/system_display_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698