OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/app_launcher_handler.h" | 5 #include "chrome/browser/dom_ui/app_launcher_handler.h" |
6 | 6 |
7 #include "app/animation.h" | 7 #include "app/animation.h" |
8 #include "app/l10n_util.h" | |
9 #include "app/resource_bundle.h" | |
10 #include "base/base64.h" | 8 #include "base/base64.h" |
| 9 #include "base/string_util.h" |
11 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
12 #include "base/values.h" | 11 #include "base/values.h" |
13 #include "chrome/browser/app_launched_animation.h" | 12 #include "chrome/browser/app_launched_animation.h" |
14 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
15 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
16 #include "chrome/browser/extensions/extensions_service.h" | 15 #include "chrome/browser/extensions/extensions_service.h" |
17 #include "chrome/browser/platform_util.h" | 16 #include "chrome/browser/platform_util.h" |
18 #include "chrome/browser/tab_contents/tab_contents.h" | 17 #include "chrome/browser/tab_contents/tab_contents.h" |
19 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
20 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 return; | 226 return; |
228 } | 227 } |
229 | 228 |
230 // Make sure that the extension exists. | 229 // Make sure that the extension exists. |
231 Extension* extension = | 230 Extension* extension = |
232 extensions_service_->GetExtensionById(extension_id, false); | 231 extensions_service_->GetExtensionById(extension_id, false); |
233 DCHECK(extension); | 232 DCHECK(extension); |
234 | 233 |
235 extensions_service_->UninstallExtension(extension_id, false); | 234 extensions_service_->UninstallExtension(extension_id, false); |
236 } | 235 } |
OLD | NEW |