• tzik's avatar
    Introduce base::IgnoreReuse() to wrap OnceCallback into RepeatingCallback · faa3495a
    tzik authored
    This CL adds base::IgnoreReuse() and applies it to ImportantFileWriter.
    
    In some rare case such as ImportantFileWriter, ServiceWorkerStorage, and
    Mojo stuff, a called-only-once callback object is copied and passed to
    separate code paths, that blocks OnceCallback migration.
    base::IgnoreReuse() is a workaround for that by wrapping OnceCallback
    into a RepeatingCallback, and ignores past-first calls.
    
    BUG=668014
    
    Review-Url: https://codereview.chromium.org/2820993002
    Cr-Commit-Position: refs/heads/master@{#465979}
    faa3495a
Name
Last commit
Last update
..
dir_reader_fallback.h Loading commit data...
dir_reader_linux.h Loading commit data...
dir_reader_posix.h Loading commit data...
dir_reader_posix_unittest.cc Loading commit data...
file.cc Loading commit data...
file.h Loading commit data...
file_descriptor_watcher_posix.cc Loading commit data...
file_descriptor_watcher_posix.h Loading commit data...
file_descriptor_watcher_posix_unittest.cc Loading commit data...
file_enumerator.cc Loading commit data...
file_enumerator.h Loading commit data...
file_enumerator_posix.cc Loading commit data...
file_enumerator_win.cc Loading commit data...
file_locking_unittest.cc Loading commit data...
file_path.cc Loading commit data...
file_path.h Loading commit data...
file_path_constants.cc Loading commit data...
file_path_unittest.cc Loading commit data...
file_path_watcher.cc Loading commit data...
file_path_watcher.h Loading commit data...
file_path_watcher_fsevents.cc Loading commit data...
file_path_watcher_fsevents.h Loading commit data...
file_path_watcher_kqueue.cc Loading commit data...
file_path_watcher_kqueue.h Loading commit data...
file_path_watcher_linux.cc Loading commit data...
file_path_watcher_mac.cc Loading commit data...
file_path_watcher_stub.cc Loading commit data...
file_path_watcher_unittest.cc Loading commit data...
file_path_watcher_win.cc Loading commit data...
file_posix.cc Loading commit data...
file_proxy.cc Loading commit data...
file_proxy.h Loading commit data...
file_proxy_unittest.cc Loading commit data...
file_tracing.cc Loading commit data...
file_tracing.h Loading commit data...
file_unittest.cc Loading commit data...
file_util.cc Loading commit data...
file_util.h Loading commit data...
file_util_android.cc Loading commit data...
file_util_linux.cc Loading commit data...
file_util_mac.mm Loading commit data...
file_util_posix.cc Loading commit data...
file_util_proxy.cc Loading commit data...
file_util_proxy.h Loading commit data...
file_util_proxy_unittest.cc Loading commit data...
file_util_unittest.cc Loading commit data...
file_util_win.cc Loading commit data...
file_win.cc Loading commit data...
important_file_writer.cc Loading commit data...
important_file_writer.h Loading commit data...
important_file_writer_unittest.cc Loading commit data...
memory_mapped_file.cc Loading commit data...
memory_mapped_file.h Loading commit data...
memory_mapped_file_posix.cc Loading commit data...
memory_mapped_file_unittest.cc Loading commit data...
memory_mapped_file_win.cc Loading commit data...
scoped_file.cc Loading commit data...
scoped_file.h Loading commit data...
scoped_platform_handle.cc Loading commit data...
scoped_platform_handle.h Loading commit data...
scoped_platform_handle_posix.cc Loading commit data...
scoped_platform_handle_unittest.cc Loading commit data...
scoped_platform_handle_win.cc Loading commit data...
scoped_temp_dir.cc Loading commit data...
scoped_temp_dir.h Loading commit data...
scoped_temp_dir_unittest.cc Loading commit data...