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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 | 1515 |
1516 SET_STRING(IDS_FILE_BROWSER, SEARCH_NO_MATCHING_FILES); | 1516 SET_STRING(IDS_FILE_BROWSER, SEARCH_NO_MATCHING_FILES); |
1517 SET_STRING(IDS_FILE_BROWSER, SEARCH_EXPAND); | 1517 SET_STRING(IDS_FILE_BROWSER, SEARCH_EXPAND); |
1518 | 1518 |
1519 SET_STRING(IDS_FILE_BROWSER, CHANGE_DEFAULT_MENU_ITEM); | 1519 SET_STRING(IDS_FILE_BROWSER, CHANGE_DEFAULT_MENU_ITEM); |
1520 SET_STRING(IDS_FILE_BROWSER, CHANGE_DEFAULT_CAPTION); | 1520 SET_STRING(IDS_FILE_BROWSER, CHANGE_DEFAULT_CAPTION); |
1521 SET_STRING(IDS_FILE_BROWSER, DEFAULT_ACTION_LABEL); | 1521 SET_STRING(IDS_FILE_BROWSER, DEFAULT_ACTION_LABEL); |
1522 | 1522 |
1523 SET_STRING(IDS_FILE_BROWSER, DETAIL_VIEW_TOOLTIP); | 1523 SET_STRING(IDS_FILE_BROWSER, DETAIL_VIEW_TOOLTIP); |
1524 SET_STRING(IDS_FILE_BROWSER, THUMBNAIL_VIEW_TOOLTIP); | 1524 SET_STRING(IDS_FILE_BROWSER, THUMBNAIL_VIEW_TOOLTIP); |
| 1525 |
| 1526 SET_STRING(IDS_FILE_BROWSER, TIME_TODAY); |
| 1527 SET_STRING(IDS_FILE_BROWSER, TIME_YESTERDAY); |
1525 #undef SET_STRING | 1528 #undef SET_STRING |
1526 | 1529 |
1527 dict->SetBoolean("PDF_VIEW_ENABLED", | 1530 dict->SetBoolean("PDF_VIEW_ENABLED", |
1528 file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf")); | 1531 file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf")); |
1529 | 1532 |
1530 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); | 1533 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); |
1531 | 1534 |
1532 dict->SetBoolean("ENABLE_GDATA", gdata::util::IsGDataAvailable(profile())); | 1535 dict->SetBoolean("ENABLE_GDATA", gdata::util::IsGDataAvailable(profile())); |
1533 | 1536 |
1534 #if defined(USE_ASH) | 1537 #if defined(USE_ASH) |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2138 gdata::GDataSystemService* system_service = | 2141 gdata::GDataSystemService* system_service = |
2139 gdata::GDataSystemServiceFactory::GetForProfile(profile_); | 2142 gdata::GDataSystemServiceFactory::GetForProfile(profile_); |
2140 if (!system_service || !system_service->file_system()) | 2143 if (!system_service || !system_service->file_system()) |
2141 return false; | 2144 return false; |
2142 | 2145 |
2143 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); | 2146 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); |
2144 system_service->file_system()->RequestDirectoryRefresh(directory_path); | 2147 system_service->file_system()->RequestDirectoryRefresh(directory_path); |
2145 | 2148 |
2146 return true; | 2149 return true; |
2147 } | 2150 } |
OLD | NEW |