OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/chromeos/extensions/install_limiter.h" | 5 #include "chrome/browser/chromeos/extensions/install_limiter.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
12 #include "chrome/browser/chromeos/extensions/install_limiter_factory.h" | 12 #include "chrome/browser/chromeos/extensions/install_limiter_factory.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/notification_details.h" | 14 #include "content/public/browser/notification_details.h" |
15 #include "content/public/browser/notification_source.h" | 15 #include "content/public/browser/notification_source.h" |
16 #include "extensions/browser/notification_types.h" | 16 #include "extensions/browser/notification_types.h" |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 registrar_.Remove(this, extensions::NOTIFICATION_CRX_INSTALLER_DONE, source); | 132 registrar_.Remove(this, extensions::NOTIFICATION_CRX_INSTALLER_DONE, source); |
133 | 133 |
134 const scoped_refptr<CrxInstaller> installer = | 134 const scoped_refptr<CrxInstaller> installer = |
135 content::Source<extensions::CrxInstaller>(source).ptr(); | 135 content::Source<extensions::CrxInstaller>(source).ptr(); |
136 running_installers_.erase(installer); | 136 running_installers_.erase(installer); |
137 CheckAndRunDeferrredInstalls(); | 137 CheckAndRunDeferrredInstalls(); |
138 } | 138 } |
139 | 139 |
140 } // namespace extensions | 140 } // namespace extensions |
OLD | NEW |