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

Side by Side Diff: chrome/browser/chromeos/drive/drive_scheduler.cc

Issue 14188035: Pass error code for drive::JobListObserver::OnJobDone(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/drive/drive_scheduler.h" 5 #include "chrome/browser/chromeos/drive/drive_scheduler.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 } 905 }
906 NOTREACHED(); 906 NOTREACHED();
907 return FILE_QUEUE; 907 return FILE_QUEUE;
908 } 908 }
909 909
910 void DriveScheduler::NotifyJobAdded(const JobInfo& job_info) { 910 void DriveScheduler::NotifyJobAdded(const JobInfo& job_info) {
911 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 911 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
912 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobAdded(job_info)); 912 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobAdded(job_info));
913 } 913 }
914 914
915 void DriveScheduler::NotifyJobDone(const JobInfo& job_info) { 915 void DriveScheduler::NotifyJobDone(const JobInfo& job_info,
916 DriveFileError error) {
916 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 917 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
917 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobDone(job_info)); 918 FOR_EACH_OBSERVER(JobListObserver, observer_list_,
919 OnJobDone(job_info, error));
918 } 920 }
919 921
920 void DriveScheduler::NotifyJobUpdated(const JobInfo& job_info) { 922 void DriveScheduler::NotifyJobUpdated(const JobInfo& job_info) {
921 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 923 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
922 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobUpdated(job_info)); 924 FOR_EACH_OBSERVER(JobListObserver, observer_list_, OnJobUpdated(job_info));
923 } 925 }
924 926
925 } // namespace drive 927 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_scheduler.h ('k') | chrome/browser/chromeos/drive/job_list_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698