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

Unified Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 280963002: Move FileHandlersInfo to /extensions and remove struct FileHandlersInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/web_applications/web_app_mac.mm
diff --git a/chrome/browser/web_applications/web_app_mac.mm b/chrome/browser/web_applications/web_app_mac.mm
index 10d8a894699fefc1bb259159cd600ad16aa6a125..563b33f76c3e506877c147d9b9cb4ca15cc43c53 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -436,14 +436,12 @@ web_app::ShortcutInfo BuildShortcutInfoFromBundle(
void UpdateFileTypes(NSMutableDictionary* plist,
const extensions::FileHandlersInfo& file_handlers_info) {
- const std::vector<extensions::FileHandlerInfo>& handlers =
- file_handlers_info.handlers;
NSMutableArray* document_types =
- [NSMutableArray arrayWithCapacity:handlers.size()];
+ [NSMutableArray arrayWithCapacity:file_handlers_info.size()];
- for (std::vector<extensions::FileHandlerInfo>::const_iterator info_it =
- handlers.begin();
- info_it != handlers.end();
+ for (extensions::FileHandlersInfo::const_iterator info_it =
+ file_handlers_info.begin();
+ info_it != file_handlers_info.end();
++info_it) {
const extensions::FileHandlerInfo& info = *info_it;
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.h ('k') | chrome/browser/web_applications/web_app_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698