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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/event_router.cc

Issue 2579083002: Rename OnAppsUpdated to OnIntentFiltersUpdated (Closed)
Patch Set: Created 4 years 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
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/extensions/file_manager/event_router.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 dispatch_directory_change_event_impl_( 394 dispatch_directory_change_event_impl_(
395 base::Bind(&EventRouter::DispatchDirectoryChangeEventImpl, 395 base::Bind(&EventRouter::DispatchDirectoryChangeEventImpl,
396 base::Unretained(this))), 396 base::Unretained(this))),
397 weak_factory_(this) { 397 weak_factory_(this) {
398 DCHECK_CURRENTLY_ON(BrowserThread::UI); 398 DCHECK_CURRENTLY_ON(BrowserThread::UI);
399 ObserveEvents(); 399 ObserveEvents();
400 } 400 }
401 401
402 EventRouter::~EventRouter() = default; 402 EventRouter::~EventRouter() = default;
403 403
404 void EventRouter::OnAppsUpdated() { 404 void EventRouter::OnIntentFiltersUpdated() {
405 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 405 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
406 BroadcastEvent(profile_, 406 BroadcastEvent(profile_,
407 extensions::events::FILE_MANAGER_PRIVATE_ON_APPS_UPDATED, 407 extensions::events::FILE_MANAGER_PRIVATE_ON_APPS_UPDATED,
408 file_manager_private::OnAppsUpdated::kEventName, 408 file_manager_private::OnAppsUpdated::kEventName,
409 file_manager_private::OnAppsUpdated::Create()); 409 file_manager_private::OnAppsUpdated::Create());
410 } 410 }
411 411
412 void EventRouter::Shutdown() { 412 void EventRouter::Shutdown() {
413 DCHECK_CURRENTLY_ON(BrowserThread::UI); 413 DCHECK_CURRENTLY_ON(BrowserThread::UI);
414 414
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 void EventRouter::SetDispatchDirectoryChangeEventImplForTesting( 1000 void EventRouter::SetDispatchDirectoryChangeEventImplForTesting(
1001 const DispatchDirectoryChangeEventImplCallback& callback) { 1001 const DispatchDirectoryChangeEventImplCallback& callback) {
1002 dispatch_directory_change_event_impl_ = callback; 1002 dispatch_directory_change_event_impl_ = callback;
1003 } 1003 }
1004 1004
1005 base::WeakPtr<EventRouter> EventRouter::GetWeakPtr() { 1005 base::WeakPtr<EventRouter> EventRouter::GetWeakPtr() {
1006 return weak_factory_.GetWeakPtr(); 1006 return weak_factory_.GetWeakPtr();
1007 } 1007 }
1008 1008
1009 } // namespace file_manager 1009 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698