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

Side by Side Diff: chrome/browser/extensions/api/file_system/file_system_api.cc

Issue 2172043002: chrome/browser/extensions: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/file_system/file_system_api.h" 5 #include "chrome/browser/extensions/api/file_system/file_system_api.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 } 454 }
455 455
456 bool ConsentProviderDelegate::IsAutoLaunched(const Extension& extension) { 456 bool ConsentProviderDelegate::IsAutoLaunched(const Extension& extension) {
457 chromeos::KioskAppManager::App app_info; 457 chromeos::KioskAppManager::App app_info;
458 return chromeos::KioskAppManager::Get()->GetApp(extension.id(), &app_info) && 458 return chromeos::KioskAppManager::Get()->GetApp(extension.id(), &app_info) &&
459 app_info.was_auto_launched_with_zero_delay; 459 app_info.was_auto_launched_with_zero_delay;
460 } 460 }
461 461
462 bool ConsentProviderDelegate::IsWhitelistedComponent( 462 bool ConsentProviderDelegate::IsWhitelistedComponent(
463 const Extension& extension) { 463 const Extension& extension) {
464 for (const auto& whitelisted_id : kRequestFileSystemComponentWhitelist) { 464 for (auto* whitelisted_id : kRequestFileSystemComponentWhitelist) {
465 if (extension.id().compare(whitelisted_id) == 0) 465 if (extension.id().compare(whitelisted_id) == 0)
466 return true; 466 return true;
467 } 467 }
468 return false; 468 return false;
469 } 469 }
470 470
471 #endif 471 #endif
472 472
473 } // namespace file_system_api 473 } // namespace file_system_api
474 474
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 return RespondNow(Error(kNotSupportedOnNonKioskSessionError)); 1448 return RespondNow(Error(kNotSupportedOnNonKioskSessionError));
1449 std::vector<api::file_system::Volume> result_volume_list; 1449 std::vector<api::file_system::Volume> result_volume_list;
1450 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list); 1450 FillVolumeList(chrome_details_.GetProfile(), &result_volume_list);
1451 1451
1452 return RespondNow(ArgumentList( 1452 return RespondNow(ArgumentList(
1453 api::file_system::GetVolumeList::Results::Create(result_volume_list))); 1453 api::file_system::GetVolumeList::Results::Create(result_volume_list)));
1454 } 1454 }
1455 #endif 1455 #endif
1456 1456
1457 } // namespace extensions 1457 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698