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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 10669038: base: Remove dereference structure operator (i.e ->) from ScopedVector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | 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/chromeos/gdata/gdata_file_system.h" 5 #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 // root. 2442 // root.
2443 scoped_ptr<std::vector<SearchResultInfo> > results( 2443 scoped_ptr<std::vector<SearchResultInfo> > results(
2444 new std::vector<SearchResultInfo>()); 2444 new std::vector<SearchResultInfo>());
2445 2445
2446 DCHECK_EQ(1u, params->feed_list->size()); 2446 DCHECK_EQ(1u, params->feed_list->size());
2447 DocumentFeed* feed = params->feed_list->at(0); 2447 DocumentFeed* feed = params->feed_list->at(0);
2448 2448
2449 // Go through all entires generated by the feed and add them to the search 2449 // Go through all entires generated by the feed and add them to the search
2450 // result directory. 2450 // result directory.
2451 for (size_t i = 0; i < feed->entries().size(); ++i){ 2451 for (size_t i = 0; i < feed->entries().size(); ++i){
2452 DocumentEntry* doc = feed->entries()->at(i); 2452 DocumentEntry* doc = const_cast<DocumentEntry*>(feed->entries()[i]);
2453 scoped_ptr<GDataEntry> entry( 2453 scoped_ptr<GDataEntry> entry(
2454 GDataEntry::FromDocumentEntry(NULL, doc, root_.get())); 2454 GDataEntry::FromDocumentEntry(NULL, doc, root_.get()));
2455 2455
2456 if (!entry.get()) 2456 if (!entry.get())
2457 continue; 2457 continue;
2458 2458
2459 DCHECK_EQ(doc->resource_id(), entry->resource_id()); 2459 DCHECK_EQ(doc->resource_id(), entry->resource_id());
2460 DCHECK(!entry->is_deleted()); 2460 DCHECK(!entry->is_deleted());
2461 2461
2462 std::string entry_resource_id = entry->resource_id(); 2462 std::string entry_resource_id = entry->resource_id();
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
3868 // must go through here. Removes the |file_path| from the remembered set so 3868 // must go through here. Removes the |file_path| from the remembered set so
3869 // that subsequent operations can open the file again. 3869 // that subsequent operations can open the file again.
3870 open_files_.erase(file_path); 3870 open_files_.erase(file_path);
3871 3871
3872 // Then invokes the user-supplied callback function. 3872 // Then invokes the user-supplied callback function.
3873 if (!callback.is_null()) 3873 if (!callback.is_null())
3874 callback.Run(result); 3874 callback.Run(result);
3875 } 3875 }
3876 3876
3877 } // namespace gdata 3877 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_webapps_registry.cc ('k') | chrome/browser/chromeos/gdata/gdata_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698