| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webui/app_launcher_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/string_split.h" | 12 #include "base/string_split.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 | 504 |
| 505 void AppLauncherHandler::UninstallDefaultApps() { | 505 void AppLauncherHandler::UninstallDefaultApps() { |
| 506 DefaultApps* default_apps = extensions_service_->default_apps(); | 506 DefaultApps* default_apps = extensions_service_->default_apps(); |
| 507 const ExtensionIdSet& app_ids = default_apps->default_apps(); | 507 const ExtensionIdSet& app_ids = default_apps->default_apps(); |
| 508 for (ExtensionIdSet::const_iterator iter = app_ids.begin(); | 508 for (ExtensionIdSet::const_iterator iter = app_ids.begin(); |
| 509 iter != app_ids.end(); ++iter) { | 509 iter != app_ids.end(); ++iter) { |
| 510 if (extensions_service_->GetExtensionById(*iter, true)) | 510 if (extensions_service_->GetExtensionById(*iter, true)) |
| 511 extensions_service_->UninstallExtension(*iter, false); | 511 extensions_service_->UninstallExtension(*iter, false); |
| 512 } | 512 } |
| 513 } | 513 } |
| OLD | NEW |