| 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/ui/webui/ntp/app_launcher_handler.h" | 5 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "chrome/common/chrome_notification_types.h" | 35 #include "chrome/common/chrome_notification_types.h" |
| 36 #include "chrome/common/extensions/extension.h" | 36 #include "chrome/common/extensions/extension.h" |
| 37 #include "chrome/common/extensions/extension_constants.h" | 37 #include "chrome/common/extensions/extension_constants.h" |
| 38 #include "chrome/common/extensions/extension_icon_set.h" | 38 #include "chrome/common/extensions/extension_icon_set.h" |
| 39 #include "chrome/common/extensions/extension_resource.h" | 39 #include "chrome/common/extensions/extension_resource.h" |
| 40 #include "chrome/common/favicon_url.h" | 40 #include "chrome/common/favicon_url.h" |
| 41 #include "chrome/common/pref_names.h" | 41 #include "chrome/common/pref_names.h" |
| 42 #include "chrome/common/url_constants.h" | 42 #include "chrome/common/url_constants.h" |
| 43 #include "chrome/common/web_apps.h" | 43 #include "chrome/common/web_apps.h" |
| 44 #include "content/browser/tab_contents/tab_contents.h" | 44 #include "content/browser/tab_contents/tab_contents.h" |
| 45 #include "content/browser/webui/web_ui.h" |
| 45 #include "content/public/browser/notification_service.h" | 46 #include "content/public/browser/notification_service.h" |
| 46 #include "googleurl/src/gurl.h" | 47 #include "googleurl/src/gurl.h" |
| 47 #include "grit/browser_resources.h" | 48 #include "grit/browser_resources.h" |
| 48 #include "grit/generated_resources.h" | 49 #include "grit/generated_resources.h" |
| 49 #include "net/base/escape.h" | 50 #include "net/base/escape.h" |
| 50 #include "ui/base/animation/animation.h" | 51 #include "ui/base/animation/animation.h" |
| 51 #include "ui/base/l10n/l10n_util.h" | 52 #include "ui/base/l10n/l10n_util.h" |
| 52 #include "ui/gfx/codec/png_codec.h" | 53 #include "ui/gfx/codec/png_codec.h" |
| 53 | 54 |
| 54 using content::WebContents; | 55 using content::WebContents; |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 | 983 |
| 983 void AppLauncherHandler::UninstallDefaultApps() { | 984 void AppLauncherHandler::UninstallDefaultApps() { |
| 984 AppsPromo* apps_promo = extension_service_->apps_promo(); | 985 AppsPromo* apps_promo = extension_service_->apps_promo(); |
| 985 const ExtensionIdSet& app_ids = apps_promo->old_default_apps(); | 986 const ExtensionIdSet& app_ids = apps_promo->old_default_apps(); |
| 986 for (ExtensionIdSet::const_iterator iter = app_ids.begin(); | 987 for (ExtensionIdSet::const_iterator iter = app_ids.begin(); |
| 987 iter != app_ids.end(); ++iter) { | 988 iter != app_ids.end(); ++iter) { |
| 988 if (extension_service_->GetExtensionById(*iter, true)) | 989 if (extension_service_->GetExtensionById(*iter, true)) |
| 989 extension_service_->UninstallExtension(*iter, false, NULL); | 990 extension_service_->UninstallExtension(*iter, false, NULL); |
| 990 } | 991 } |
| 991 } | 992 } |
| OLD | NEW |