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

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

Issue 10843043: gdata: Make WeakPtrFactory the last parameter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 4 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 GDataUploaderInterface* uploader, 728 GDataUploaderInterface* uploader,
729 DriveWebAppsRegistryInterface* webapps_registry, 729 DriveWebAppsRegistryInterface* webapps_registry,
730 base::SequencedTaskRunner* blocking_task_runner) 730 base::SequencedTaskRunner* blocking_task_runner)
731 : profile_(profile), 731 : profile_(profile),
732 cache_(cache), 732 cache_(cache),
733 uploader_(uploader), 733 uploader_(uploader),
734 documents_service_(documents_service), 734 documents_service_(documents_service),
735 webapps_registry_(webapps_registry), 735 webapps_registry_(webapps_registry),
736 update_timer_(true /* retain_user_task */, true /* is_repeating */), 736 update_timer_(true /* retain_user_task */, true /* is_repeating */),
737 hide_hosted_docs_(false), 737 hide_hosted_docs_(false),
738 blocking_task_runner_(blocking_task_runner),
738 ui_weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), 739 ui_weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
739 ui_weak_ptr_(ui_weak_ptr_factory_.GetWeakPtr()), 740 ui_weak_ptr_(ui_weak_ptr_factory_.GetWeakPtr()) {
740 blocking_task_runner_(blocking_task_runner) {
741 // Should be created from the file browser extension API on UI thread. 741 // Should be created from the file browser extension API on UI thread.
742 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 742 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
743 } 743 }
744 744
745 void GDataFileSystem::Initialize() { 745 void GDataFileSystem::Initialize() {
746 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 746 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
747 747
748 documents_service_->Initialize(profile_); 748 documents_service_->Initialize(profile_);
749 749
750 directory_service_.reset(new GDataDirectoryService); 750 directory_service_.reset(new GDataDirectoryService);
(...skipping 3219 matching lines...) Expand 10 before | Expand all | Expand 10 after
3970 } 3970 }
3971 3971
3972 PlatformFileInfoProto entry_file_info; 3972 PlatformFileInfoProto entry_file_info;
3973 GDataEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); 3973 GDataEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info);
3974 *entry_proto->mutable_file_info() = entry_file_info; 3974 *entry_proto->mutable_file_info() = entry_file_info;
3975 if (!callback.is_null()) 3975 if (!callback.is_null())
3976 callback.Run(GDATA_FILE_OK, entry_proto.Pass()); 3976 callback.Run(GDATA_FILE_OK, entry_proto.Pass());
3977 } 3977 }
3978 3978
3979 } // namespace gdata 3979 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.h ('k') | chrome/browser/chromeos/gdata/gdata_operation_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698