| OLD | NEW |
| 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/extensions/api/runtime/chrome_runtime_api_delegate.h" | 5 #include "chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
| 16 #include "chrome/browser/extensions/extension_tab_util.h" | 16 #include "chrome/browser/extensions/extension_tab_util.h" |
| 17 #include "chrome/browser/extensions/updater/extension_updater.h" | 17 #include "chrome/browser/extensions/updater/extension_updater.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/ui/browser_finder.h" | 19 #include "chrome/browser/ui/browser_finder.h" |
| 20 #include "chrome/browser/ui/browser_navigator.h" | 20 #include "chrome/browser/ui/browser_navigator.h" |
| 21 #include "chrome/browser/ui/browser_window.h" | 21 #include "chrome/browser/ui/browser_window.h" |
| 22 #include "chrome/browser/ui/host_desktop.h" |
| 22 #include "components/update_client/update_query_params.h" | 23 #include "components/update_client/update_query_params.h" |
| 23 #include "content/public/browser/notification_service.h" | 24 #include "content/public/browser/notification_service.h" |
| 24 #include "extensions/browser/extension_system.h" | 25 #include "extensions/browser/extension_system.h" |
| 25 #include "extensions/browser/notification_types.h" | 26 #include "extensions/browser/notification_types.h" |
| 26 #include "extensions/browser/warning_service.h" | 27 #include "extensions/browser/warning_service.h" |
| 27 #include "extensions/browser/warning_set.h" | 28 #include "extensions/browser/warning_set.h" |
| 28 #include "extensions/common/api/runtime.h" | 29 #include "extensions/common/api/runtime.h" |
| 29 | 30 |
| 30 #if defined(OS_CHROMEOS) | 31 #if defined(OS_CHROMEOS) |
| 31 #include "chromeos/dbus/dbus_thread_manager.h" | 32 #include "chromeos/dbus/dbus_thread_manager.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 const UpdateCheckResult& result) { | 281 const UpdateCheckResult& result) { |
| 281 UpdateCallbackList callbacks = pending_update_checks_[extension_id]; | 282 UpdateCallbackList callbacks = pending_update_checks_[extension_id]; |
| 282 pending_update_checks_.erase(extension_id); | 283 pending_update_checks_.erase(extension_id); |
| 283 for (UpdateCallbackList::const_iterator iter = callbacks.begin(); | 284 for (UpdateCallbackList::const_iterator iter = callbacks.begin(); |
| 284 iter != callbacks.end(); | 285 iter != callbacks.end(); |
| 285 ++iter) { | 286 ++iter) { |
| 286 const UpdateCheckCallback& callback = *iter; | 287 const UpdateCheckCallback& callback = *iter; |
| 287 callback.Run(result); | 288 callback.Run(result); |
| 288 } | 289 } |
| 289 } | 290 } |
| OLD | NEW |