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

Unified Diff: chrome/browser/shell_integration_linux.h

Issue 2193393002: Revert of Linux: Support the --class argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/shell_integration_linux.cc » ('j') | chrome/browser/ui/libgtk2ui/gtk2_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration_linux.h
diff --git a/chrome/browser/shell_integration_linux.h b/chrome/browser/shell_integration_linux.h
index cd2ca8ecb8cb5d403b4c7336ded976be0bd794bd..f6bd1d828e4b74516fbc5c361b5953f4900b42d0 100644
--- a/chrome/browser/shell_integration_linux.h
+++ b/chrome/browser/shell_integration_linux.h
@@ -30,11 +30,10 @@
// Called on the FILE thread.
std::vector<base::FilePath> GetDataSearchLocations(base::Environment* env);
-// Gets the name for use as the res_name of the window's WM_CLASS property.
+// Gets the name for use as the res_class (and possibly res_name) of the
+// window's WM_CLASS property. This is the program name from argv[0], with the
+// first letter capitalized. Equivalent to GDK's gdk_get_program_class().
std::string GetProgramClassName();
-
-// Gets the name for use as the res_class of the window's WM_CLASS property.
-std::string GetProgramClassClass();
// Returns filename of the desktop shortcut used to launch the browser.
std::string GetDesktopName(base::Environment* env);
@@ -137,17 +136,6 @@
// for the profile in |profile_path|.
void DeleteAllDesktopShortcuts(const base::FilePath& profile_path);
-namespace internal {
-
-// Exposed for testing. Clients should use the corresponding functions in
-// shell_integration_linux instead.
-std::string GetProgramClassName(const base::CommandLine& command_line,
- const std::string& desktop_file_name);
-std::string GetProgramClassClass(const base::CommandLine& command_line,
- const std::string& desktop_file_name);
-
-} // namespace internal
-
} // namespace shell_integration_linux
#endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
« no previous file with comments | « no previous file | chrome/browser/shell_integration_linux.cc » ('j') | chrome/browser/ui/libgtk2ui/gtk2_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698