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

Side by Side Diff: chrome/browser/media_galleries/linux/mtp_device_object_enumerator.cc

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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 | Annotate | Revision Log
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/media_galleries/linux/mtp_device_object_enumerator.h" 5 #include "chrome/browser/media_galleries/linux/mtp_device_object_enumerator.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace chrome {
10
11 MTPDeviceObjectEnumerator::MTPDeviceObjectEnumerator( 9 MTPDeviceObjectEnumerator::MTPDeviceObjectEnumerator(
12 const std::vector<MtpFileEntry>& entries) 10 const std::vector<MtpFileEntry>& entries)
13 : file_entries_(entries), 11 : file_entries_(entries),
14 index_(0U), 12 index_(0U),
15 is_index_ready_(false) { 13 is_index_ready_(false) {
16 } 14 }
17 15
18 MTPDeviceObjectEnumerator::~MTPDeviceObjectEnumerator() { 16 MTPDeviceObjectEnumerator::~MTPDeviceObjectEnumerator() {
19 } 17 }
20 18
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return true; 54 return true;
57 } 55 }
58 56
59 bool MTPDeviceObjectEnumerator::HasMoreEntries() const { 57 bool MTPDeviceObjectEnumerator::HasMoreEntries() const {
60 return index_ < file_entries_.size(); 58 return index_ < file_entries_.size();
61 } 59 }
62 60
63 bool MTPDeviceObjectEnumerator::IsIndexReadyAndInRange() const { 61 bool MTPDeviceObjectEnumerator::IsIndexReadyAndInRange() const {
64 return is_index_ready_ && HasMoreEntries(); 62 return is_index_ready_ && HasMoreEntries();
65 } 63 }
66
67 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698