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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10909095: Delete images in Photo Editor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
OLDNEW
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/statvfs.h> 7 #include <sys/statvfs.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 SET_STRING(IDS_FILE_BROWSER, GALLERY_OVERWRITE_ORIGINAL); 1637 SET_STRING(IDS_FILE_BROWSER, GALLERY_OVERWRITE_ORIGINAL);
1638 SET_STRING(IDS_FILE_BROWSER, GALLERY_OVERWRITE_BUBBLE); 1638 SET_STRING(IDS_FILE_BROWSER, GALLERY_OVERWRITE_BUBBLE);
1639 SET_STRING(IDS_FILE_BROWSER, GALLERY_UNSAVED_CHANGES); 1639 SET_STRING(IDS_FILE_BROWSER, GALLERY_UNSAVED_CHANGES);
1640 SET_STRING(IDS_FILE_BROWSER, GALLERY_READONLY_WARNING); 1640 SET_STRING(IDS_FILE_BROWSER, GALLERY_READONLY_WARNING);
1641 SET_STRING(IDS_FILE_BROWSER, GALLERY_IMAGE_ERROR); 1641 SET_STRING(IDS_FILE_BROWSER, GALLERY_IMAGE_ERROR);
1642 SET_STRING(IDS_FILE_BROWSER, GALLERY_VIDEO_ERROR); 1642 SET_STRING(IDS_FILE_BROWSER, GALLERY_VIDEO_ERROR);
1643 SET_STRING(IDS_FILE_BROWSER, AUDIO_ERROR); 1643 SET_STRING(IDS_FILE_BROWSER, AUDIO_ERROR);
1644 SET_STRING(IDS_FILE_BROWSER, GALLERY_IMAGE_OFFLINE); 1644 SET_STRING(IDS_FILE_BROWSER, GALLERY_IMAGE_OFFLINE);
1645 SET_STRING(IDS_FILE_BROWSER, GALLERY_VIDEO_OFFLINE); 1645 SET_STRING(IDS_FILE_BROWSER, GALLERY_VIDEO_OFFLINE);
1646 SET_STRING(IDS_FILE_BROWSER, AUDIO_OFFLINE); 1646 SET_STRING(IDS_FILE_BROWSER, AUDIO_OFFLINE);
1647 // Reusing the string, but with alias starting with GALLERY. 1647 // Reusing strings, but with alias starting with GALLERY.
1648 dict->SetString("GALLERY_FILE_HIDDEN_NAME", 1648 dict->SetString("GALLERY_FILE_HIDDEN_NAME",
1649 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_ERROR_HIDDEN_NAME)); 1649 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_ERROR_HIDDEN_NAME));
1650 dict->SetString("GALLERY_OK_LABEL",
1651 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_OK_LABEL));
1652 dict->SetString("GALLERY_CANCEL_LABEL",
1653 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CANCEL_LABEL));
1654 dict->SetString("GALLERY_CONFIRM_DELETE_ONE",
1655 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CONFIRM_DELETE_ONE));
1656 dict->SetString("GALLERY_CONFIRM_DELETE_SOME",
1657 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CONFIRM_DELETE_SOME));
1650 1658
1651 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_PHOTOS_DRIVE); 1659 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_PHOTOS_DRIVE);
1652 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_VIEW_FILES); 1660 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_VIEW_FILES);
1653 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_OK); 1661 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_OK);
1654 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_COUNTER_NO_MEDIA); 1662 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_COUNTER_NO_MEDIA);
1655 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_COUNTER); 1663 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_COUNTER);
1656 1664
1657 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_IMPORT_BUTTON); 1665 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_IMPORT_BUTTON);
1658 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_CANCEL_BUTTON); 1666 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_CANCEL_BUTTON);
1659 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_GDATA_ERROR); 1667 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_GDATA_ERROR);
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
2586 gdata::DriveSystemService* system_service = 2594 gdata::DriveSystemService* system_service =
2587 gdata::DriveSystemServiceFactory::GetForProfile(profile_); 2595 gdata::DriveSystemServiceFactory::GetForProfile(profile_);
2588 if (!system_service || !system_service->file_system()) 2596 if (!system_service || !system_service->file_system())
2589 return false; 2597 return false;
2590 2598
2591 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); 2599 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string));
2592 system_service->file_system()->RequestDirectoryRefresh(directory_path); 2600 system_service->file_system()->RequestDirectoryRefresh(directory_path);
2593 2601
2594 return true; 2602 return true;
2595 } 2603 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698