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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.h

Issue 656393002: [fsp] Pass proper data to Notify(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/file_system_provider/provided_file_system.h
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system.h b/chrome/browser/chromeos/file_system_provider/provided_file_system.h
index d421668d78825c27045e111f6e546b8af78f4d41..6c651fc0d697dc47441e151f2edb2fd2ce162f67 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system.h
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_info.h"
@@ -150,7 +151,7 @@ class ProvidedFileSystem : public ProvidedFileSystemInterface {
virtual bool Notify(
const base::FilePath& observed_path,
ProvidedFileSystemObserver::ChangeType change_type,
- const ProvidedFileSystemObserver::ChildChanges& child_changes,
+ scoped_ptr<ProvidedFileSystemObserver::ChildChanges> child_changes,
const std::string& tag) override;
virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() override;
@@ -170,10 +171,12 @@ class ProvidedFileSystem : public ProvidedFileSystemInterface {
// Called when all observers finished handling the change notification. It
// updates the tag from |last_tag| to |tag| for the entry at |observed_path|.
- void OnNotifyCompleted(const base::FilePath& observed_path,
- ProvidedFileSystemObserver::ChangeType change_type,
- const std::string& last_tag,
- const std::string& tag);
+ void OnNotifyCompleted(
+ const base::FilePath& observed_path,
+ ProvidedFileSystemObserver::ChangeType change_type,
+ scoped_ptr<ProvidedFileSystemObserver::ChildChanges> child_changes,
+ const std::string& last_tag,
+ const std::string& tag);
Profile* profile_; // Not owned.
extensions::EventRouter* event_router_; // Not owned. May be NULL.

Powered by Google App Engine
This is Rietveld 408576698