OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chrome_extensions_activity_monitor.h" | 5 #include "chrome/browser/sync/glue/chrome_extensions_activity_monitor.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/extensions/api/bookmarks/bookmarks_api.h" | 8 #include "chrome/browser/extensions/api/bookmarks/bookmark_api.h" |
9 #include "chrome/common/chrome_notification_types.h" | 9 #include "chrome/common/chrome_notification_types.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/browser/notification_service.h" | 12 #include "content/public/browser/notification_service.h" |
13 | 13 |
14 using content::BrowserThread; | 14 using content::BrowserThread; |
15 | 15 |
16 namespace browser_sync { | 16 namespace browser_sync { |
17 | 17 |
18 ChromeExtensionsActivityMonitor::ChromeExtensionsActivityMonitor() { | 18 ChromeExtensionsActivityMonitor::ChromeExtensionsActivityMonitor() { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 f->name() == "bookmarks.create" || | 60 f->name() == "bookmarks.create" || |
61 f->name() == "bookmarks.removeTree" || | 61 f->name() == "bookmarks.removeTree" || |
62 f->name() == "bookmarks.remove") { | 62 f->name() == "bookmarks.remove") { |
63 Record& record = records_[extension->id()]; | 63 Record& record = records_[extension->id()]; |
64 record.extension_id = extension->id(); | 64 record.extension_id = extension->id(); |
65 record.bookmark_write_count++; | 65 record.bookmark_write_count++; |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 } // namespace browser_sync | 69 } // namespace browser_sync |
OLD | NEW |