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

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
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 SET_STRING(IDS_FILE_BROWSER, GALLERY_FILE_STARTS_WITH_DOT);
1576 1577
1577 SET_STRING(IDS_FILE_BROWSER, CONFIRM_OVERWRITE_FILE); 1578 SET_STRING(IDS_FILE_BROWSER, CONFIRM_OVERWRITE_FILE);
1578 SET_STRING(IDS_FILE_BROWSER, FILE_ALREADY_EXISTS); 1579 SET_STRING(IDS_FILE_BROWSER, FILE_ALREADY_EXISTS);
1579 SET_STRING(IDS_FILE_BROWSER, DIRECTORY_ALREADY_EXISTS); 1580 SET_STRING(IDS_FILE_BROWSER, DIRECTORY_ALREADY_EXISTS);
1580 SET_STRING(IDS_FILE_BROWSER, ERROR_RENAMING); 1581 SET_STRING(IDS_FILE_BROWSER, ERROR_RENAMING);
1581 SET_STRING(IDS_FILE_BROWSER, RENAME_PROMPT); 1582 SET_STRING(IDS_FILE_BROWSER, RENAME_PROMPT);
1582 SET_STRING(IDS_FILE_BROWSER, RENAME_BUTTON_LABEL); 1583 SET_STRING(IDS_FILE_BROWSER, RENAME_BUTTON_LABEL);
1583 1584
1584 SET_STRING(IDS_FILE_BROWSER, ERROR_DELETING); 1585 SET_STRING(IDS_FILE_BROWSER, ERROR_DELETING);
1585 SET_STRING(IDS_FILE_BROWSER, DELETE_BUTTON_LABEL); 1586 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); 1681 SET_STRING(IDS_FILE_BROWSER, ENQUEUE);
1681 #undef SET_STRING 1682 #undef SET_STRING
1682 1683
1683 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); 1684 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
1684 1685
1685 dict->SetString("PLAY_MEDIA", 1686 dict->SetString("PLAY_MEDIA",
1686 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY)); 1687 l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLAY));
1687 1688
1688 return true; 1689 return true;
1689 } 1690 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698