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

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

Issue 10918271: [filemanager] Improved action choices for a mounted drive. (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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_OK_LABEL)); 1662 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_OK_LABEL));
1663 dict->SetString("GALLERY_CANCEL_LABEL", 1663 dict->SetString("GALLERY_CANCEL_LABEL",
1664 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CANCEL_LABEL)); 1664 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CANCEL_LABEL));
1665 dict->SetString("GALLERY_CONFIRM_DELETE_ONE", 1665 dict->SetString("GALLERY_CONFIRM_DELETE_ONE",
1666 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CONFIRM_DELETE_ONE)); 1666 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CONFIRM_DELETE_ONE));
1667 dict->SetString("GALLERY_CONFIRM_DELETE_SOME", 1667 dict->SetString("GALLERY_CONFIRM_DELETE_SOME",
1668 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CONFIRM_DELETE_SOME)); 1668 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_CONFIRM_DELETE_SOME));
1669 1669
1670 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_PHOTOS_DRIVE); 1670 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_PHOTOS_DRIVE);
1671 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_VIEW_FILES); 1671 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_VIEW_FILES);
1672 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_WATCH_SINGLE_VIDEO);
1672 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_OK); 1673 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_OK);
1673 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_COUNTER_NO_MEDIA); 1674 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_COUNTER_NO_MEDIA);
1674 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_COUNTER); 1675 SET_STRING(IDS_FILE_BROWSER, ACTION_CHOICE_COUNTER);
1675 1676
1676 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_TITLE); 1677 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_TITLE);
1677 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_IMPORT_BUTTON); 1678 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_IMPORT_BUTTON);
1678 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_CANCEL_BUTTON); 1679 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_CANCEL_BUTTON);
1679 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_GDATA_ERROR); 1680 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_GDATA_ERROR);
1680 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_SOURCE_ERROR); 1681 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_SOURCE_ERROR);
1681 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_UNKNOWN_DATE); 1682 SET_STRING(IDS_FILE_BROWSER, PHOTO_IMPORT_UNKNOWN_DATE);
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
2612 gdata::DriveSystemService* system_service = 2613 gdata::DriveSystemService* system_service =
2613 gdata::DriveSystemServiceFactory::GetForProfile(profile_); 2614 gdata::DriveSystemServiceFactory::GetForProfile(profile_);
2614 if (!system_service || !system_service->file_system()) 2615 if (!system_service || !system_service->file_system())
2615 return false; 2616 return false;
2616 2617
2617 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string)); 2618 FilePath directory_path = GetVirtualPathFromURL(GURL(file_url_as_string));
2618 system_service->file_system()->RequestDirectoryRefresh(directory_path); 2619 system_service->file_system()->RequestDirectoryRefresh(directory_path);
2619 2620
2620 return true; 2621 return true;
2621 } 2622 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698