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

Side by Side Diff: chrome/browser/extensions/extension_file_browser_private_api.cc

Issue 9328041: [filebrowser] In Gallery, do not allow file names starting with dot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/gallery.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/extensions/extension_file_browser_private_api.h" 5 #include "chrome/browser/extensions/extension_file_browser_private_api.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 SET_STRING(IDS_FILE_BROWSER, GALLERY_FIXED); 1566 SET_STRING(IDS_FILE_BROWSER, GALLERY_FIXED);
1567 SET_STRING(IDS_FILE_BROWSER, GALLERY_CROP); 1567 SET_STRING(IDS_FILE_BROWSER, GALLERY_CROP);
1568 SET_STRING(IDS_FILE_BROWSER, GALLERY_EXPOSURE); 1568 SET_STRING(IDS_FILE_BROWSER, GALLERY_EXPOSURE);
1569 SET_STRING(IDS_FILE_BROWSER, GALLERY_BRIGHTNESS); 1569 SET_STRING(IDS_FILE_BROWSER, GALLERY_BRIGHTNESS);
1570 SET_STRING(IDS_FILE_BROWSER, GALLERY_CONTRAST); 1570 SET_STRING(IDS_FILE_BROWSER, GALLERY_CONTRAST);
1571 SET_STRING(IDS_FILE_BROWSER, GALLERY_ROTATE_LEFT); 1571 SET_STRING(IDS_FILE_BROWSER, GALLERY_ROTATE_LEFT);
1572 SET_STRING(IDS_FILE_BROWSER, GALLERY_ROTATE_RIGHT); 1572 SET_STRING(IDS_FILE_BROWSER, GALLERY_ROTATE_RIGHT);
1573 SET_STRING(IDS_FILE_BROWSER, GALLERY_UNDO); 1573 SET_STRING(IDS_FILE_BROWSER, GALLERY_UNDO);
1574 SET_STRING(IDS_FILE_BROWSER, GALLERY_REDO); 1574 SET_STRING(IDS_FILE_BROWSER, GALLERY_REDO);
1575 SET_STRING(IDS_FILE_BROWSER, GALLERY_FILE_EXISTS); 1575 SET_STRING(IDS_FILE_BROWSER, GALLERY_FILE_EXISTS);
1576 // Reusing the string, but with alias starting with GALLERY.
1577 dict->SetString("GALLERY_FILE_HIDDEN_NAME",
1578 l10n_util::GetStringUTF16(IDS_FILE_BROWSER_ERROR_HIDDEN_NAME));
1576 1579
1577 SET_STRING(IDS_FILE_BROWSER, CONFIRM_OVERWRITE_FILE); 1580 SET_STRING(IDS_FILE_BROWSER, CONFIRM_OVERWRITE_FILE);
1578 SET_STRING(IDS_FILE_BROWSER, FILE_ALREADY_EXISTS); 1581 SET_STRING(IDS_FILE_BROWSER, FILE_ALREADY_EXISTS);
1579 SET_STRING(IDS_FILE_BROWSER, DIRECTORY_ALREADY_EXISTS); 1582 SET_STRING(IDS_FILE_BROWSER, DIRECTORY_ALREADY_EXISTS);
1580 SET_STRING(IDS_FILE_BROWSER, ERROR_RENAMING); 1583 SET_STRING(IDS_FILE_BROWSER, ERROR_RENAMING);
1581 SET_STRING(IDS_FILE_BROWSER, RENAME_PROMPT); 1584 SET_STRING(IDS_FILE_BROWSER, RENAME_PROMPT);
1582 SET_STRING(IDS_FILE_BROWSER, RENAME_BUTTON_LABEL); 1585 SET_STRING(IDS_FILE_BROWSER, RENAME_BUTTON_LABEL);
1583 1586
1584 SET_STRING(IDS_FILE_BROWSER, ERROR_DELETING); 1587 SET_STRING(IDS_FILE_BROWSER, ERROR_DELETING);
1585 SET_STRING(IDS_FILE_BROWSER, DELETE_BUTTON_LABEL); 1588 SET_STRING(IDS_FILE_BROWSER, DELETE_BUTTON_LABEL);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 SET_STRING(IDS_FILE_BROWSER, ENQUEUE); 1683 SET_STRING(IDS_FILE_BROWSER, ENQUEUE);
1681 #undef SET_STRING 1684 #undef SET_STRING
1682 1685
1683 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); 1686 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
1684 1687
1685 dict->SetString("PLAY_MEDIA", 1688 dict->SetString("PLAY_MEDIA",
1686 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); 1689 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY));
1687 1690
1688 return true; 1691 return true;
1689 } 1692 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/image_editor/gallery.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698