OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/extensions/file_manager/file_browser_private_a
pi.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/file_browser_private_a
pi.h" |
6 | 6 |
7 #include <sys/stat.h> | 7 #include <sys/stat.h> |
8 #include <sys/statvfs.h> | 8 #include <sys/statvfs.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <utime.h> | 10 #include <utime.h> |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 std::set<std::string> default_tasks; | 808 std::set<std::string> default_tasks; |
809 for (PathAndMimeTypeSet::iterator it = files.begin(); it != files.end(); | 809 for (PathAndMimeTypeSet::iterator it = files.begin(); it != files.end(); |
810 ++it) { | 810 ++it) { |
811 default_tasks.insert(file_handler_util::GetDefaultTaskIdFromPrefs( | 811 default_tasks.insert(file_handler_util::GetDefaultTaskIdFromPrefs( |
812 profile_, it->second, it->first.Extension())); | 812 profile_, it->second, it->first.Extension())); |
813 } | 813 } |
814 | 814 |
815 for (ExtensionSet::const_iterator iter = service->extensions()->begin(); | 815 for (ExtensionSet::const_iterator iter = service->extensions()->begin(); |
816 iter != service->extensions()->end(); | 816 iter != service->extensions()->end(); |
817 ++iter) { | 817 ++iter) { |
818 const Extension* extension = *iter; | 818 const Extension* extension = iter->get(); |
819 | 819 |
820 // We don't support using hosted apps to open files. | 820 // We don't support using hosted apps to open files. |
821 if (!extension->is_platform_app()) | 821 if (!extension->is_platform_app()) |
822 continue; | 822 continue; |
823 | 823 |
824 if (profile_->IsOffTheRecord() && | 824 if (profile_->IsOffTheRecord() && |
825 !service->IsIncognitoEnabled(extension->id())) | 825 !service->IsIncognitoEnabled(extension->id())) |
826 continue; | 826 continue; |
827 | 827 |
828 typedef std::vector<const extensions::FileHandlerInfo*> FileHandlerList; | 828 typedef std::vector<const extensions::FileHandlerInfo*> FileHandlerList; |
(...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3094 zoom_type = content::PAGE_ZOOM_OUT; | 3094 zoom_type = content::PAGE_ZOOM_OUT; |
3095 } else if (operation == "reset") { | 3095 } else if (operation == "reset") { |
3096 zoom_type = content::PAGE_ZOOM_RESET; | 3096 zoom_type = content::PAGE_ZOOM_RESET; |
3097 } else { | 3097 } else { |
3098 NOTREACHED(); | 3098 NOTREACHED(); |
3099 return false; | 3099 return false; |
3100 } | 3100 } |
3101 view_host->Zoom(zoom_type); | 3101 view_host->Zoom(zoom_type); |
3102 return true; | 3102 return true; |
3103 } | 3103 } |
OLD | NEW |