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

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

Issue 343073003: Files.app: Provide detailed change information on onDirectoryChanged event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698