OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/directory_loader.h" | 5 #include "chrome/browser/chromeos/drive/directory_loader.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 const DirectoryFetchInfo& directory_fetch_info, | 560 const DirectoryFetchInfo& directory_fetch_info, |
561 const base::FilePath* directory_path, | 561 const base::FilePath* directory_path, |
562 FileError error) { | 562 FileError error) { |
563 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 563 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
564 | 564 |
565 DVLOG(1) << "Directory loaded: " << directory_fetch_info.ToString(); | 565 DVLOG(1) << "Directory loaded: " << directory_fetch_info.ToString(); |
566 OnDirectoryLoadComplete(directory_fetch_info.local_id(), error); | 566 OnDirectoryLoadComplete(directory_fetch_info.local_id(), error); |
567 | 567 |
568 // Also notify the observers. | 568 // Also notify the observers. |
569 if (error == FILE_ERROR_OK && !directory_path->empty()) { | 569 if (error == FILE_ERROR_OK && !directory_path->empty()) { |
570 FOR_EACH_OBSERVER(ChangeListLoaderObserver, observers_, | 570 FOR_EACH_OBSERVER(ChangeListLoaderObserver, |
571 OnDirectoryChanged(*directory_path)); | 571 observers_, |
| 572 OnDirectoryReloaded(*directory_path)); |
572 } | 573 } |
573 } | 574 } |
574 | 575 |
575 } // namespace internal | 576 } // namespace internal |
576 } // namespace drive | 577 } // namespace drive |
OLD | NEW |