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

Unified Diff: content/browser/download/base_file.h

Issue 1513413002: Enable "Hide Extension" option when "Save Link As" on the Mac Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/lifetime/browser_close_manager_browsertest.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/base_file.h
diff --git a/content/browser/download/base_file.h b/content/browser/download/base_file.h
index 9016755ebc65d95ee6c7fa4e78192ee81821f015..f8ebc5fb5b638f78ebc4fae225e106c9e8effe1a 100644
--- a/content/browser/download/base_file.h
+++ b/content/browser/download/base_file.h
@@ -107,6 +107,10 @@ class CONTENT_EXPORT BaseFile {
virtual std::string DebugString() const;
+ // Sets whether the BaseFile should hide its file extension when presented in
+ // the Finder (MacOSX).
+ void set_hide_file_extension(bool hide_file_extension);
+
private:
friend class BaseFileTest;
FRIEND_TEST_ALL_PREFIXES(BaseFileTest, IsEmptyHash);
@@ -181,6 +185,8 @@ class CONTENT_EXPORT BaseFile {
net::BoundNetLog bound_net_log_;
+ bool hide_file_extension_;
+
DISALLOW_COPY_AND_ASSIGN(BaseFile);
};
« no previous file with comments | « chrome/browser/lifetime/browser_close_manager_browsertest.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698