Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: chrome/browser/webui/app_launcher_handler.cc

Issue 6532069: Reland "WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 5." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/webui/app_launcher_handler.h ('k') | chrome/browser/webui/bookmarks_ui.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/webui/app_launcher_handler.h ('k') | chrome/browser/webui/bookmarks_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698