| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/sync/glue/extensions_activity_monitor.h" | 5 #include "chrome/browser/sync/glue/extensions_activity_monitor.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" | 9 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" |
| 10 #include "chrome/common/extensions/extension.h" | |
| 11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 12 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
| 12 #include "extensions/common/extension.h" |
| 13 #include "sync/util/extensions_activity.h" | 13 #include "sync/util/extensions_activity.h" |
| 14 | 14 |
| 15 using content::BrowserThread; | 15 using content::BrowserThread; |
| 16 | 16 |
| 17 namespace browser_sync { | 17 namespace browser_sync { |
| 18 | 18 |
| 19 ExtensionsActivityMonitor::ExtensionsActivityMonitor() | 19 ExtensionsActivityMonitor::ExtensionsActivityMonitor() |
| 20 : extensions_activity_(new syncer::ExtensionsActivity()) { | 20 : extensions_activity_(new syncer::ExtensionsActivity()) { |
| 21 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 21 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 22 // It would be nice if we could specify a Source for each specific function | 22 // It would be nice if we could specify a Source for each specific function |
| (...skipping 27 matching lines...) Expand all Loading... |
| 50 extensions_activity_->UpdateRecord(extension->id()); | 50 extensions_activity_->UpdateRecord(extension->id()); |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 const scoped_refptr<syncer::ExtensionsActivity>& | 54 const scoped_refptr<syncer::ExtensionsActivity>& |
| 55 ExtensionsActivityMonitor::GetExtensionsActivity() { | 55 ExtensionsActivityMonitor::GetExtensionsActivity() { |
| 56 return extensions_activity_; | 56 return extensions_activity_; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace browser_sync | 59 } // namespace browser_sync |
| OLD | NEW |