| 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_browser_private_api.h" | 5 #include "chrome/browser/chromeos/extensions/file_browser_private_api.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 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2200 | 2200 |
| 2201 SET_STRING(IDS_FILE_BROWSER, TIME_TODAY); | 2201 SET_STRING(IDS_FILE_BROWSER, TIME_TODAY); |
| 2202 SET_STRING(IDS_FILE_BROWSER, TIME_YESTERDAY); | 2202 SET_STRING(IDS_FILE_BROWSER, TIME_YESTERDAY); |
| 2203 | 2203 |
| 2204 SET_STRING(IDS_FILE_BROWSER, ALL_FILES_FILTER); | 2204 SET_STRING(IDS_FILE_BROWSER, ALL_FILES_FILTER); |
| 2205 #undef SET_STRING | 2205 #undef SET_STRING |
| 2206 | 2206 |
| 2207 dict->SetBoolean("PDF_VIEW_ENABLED", | 2207 dict->SetBoolean("PDF_VIEW_ENABLED", |
| 2208 file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf")); | 2208 file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf")); |
| 2209 | 2209 |
| 2210 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); | 2210 URLDataSource::SetFontAndTextDirection(dict); |
| 2211 | 2211 |
| 2212 drive::DriveSystemService* system_service = | 2212 drive::DriveSystemService* system_service = |
| 2213 drive::DriveSystemServiceFactory::GetForProfile(profile_); | 2213 drive::DriveSystemServiceFactory::GetForProfile(profile_); |
| 2214 dict->SetBoolean("ENABLE_GDATA", system_service != NULL); | 2214 dict->SetBoolean("ENABLE_GDATA", system_service != NULL); |
| 2215 | 2215 |
| 2216 #if defined(USE_ASH) | 2216 #if defined(USE_ASH) |
| 2217 dict->SetBoolean("ASH", true); | 2217 dict->SetBoolean("ASH", true); |
| 2218 #else | 2218 #else |
| 2219 dict->SetBoolean("ASH", false); | 2219 dict->SetBoolean("ASH", false); |
| 2220 #endif | 2220 #endif |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3030 // Keep the refcount until the zipping is complete on utility process. | 3030 // Keep the refcount until the zipping is complete on utility process. |
| 3031 AddRef(); | 3031 AddRef(); |
| 3032 return true; | 3032 return true; |
| 3033 } | 3033 } |
| 3034 | 3034 |
| 3035 void ZipSelectionFunction::OnZipDone(bool success) { | 3035 void ZipSelectionFunction::OnZipDone(bool success) { |
| 3036 SetResult(new base::FundamentalValue(success)); | 3036 SetResult(new base::FundamentalValue(success)); |
| 3037 SendResponse(true); | 3037 SendResponse(true); |
| 3038 Release(); | 3038 Release(); |
| 3039 } | 3039 } |
| OLD | NEW |