| Index: chrome/browser/shell_integration.cc
|
| diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
|
| index 505d87b56d54ef15bfec2f59b5221461a70480be..7457ced3ac9817e04492e287535819a529a6ea2c 100644
|
| --- a/chrome/browser/shell_integration.cc
|
| +++ b/chrome/browser/shell_integration.cc
|
| @@ -108,6 +108,16 @@ CommandLine ShellIntegration::CommandLineArgsForLauncher(
|
| return new_cmd_line;
|
| }
|
|
|
| +std::string ShellIntegration::GetProgramClassName() {
|
| + DCHECK(CommandLine::InitializedForCurrentProcess());
|
| + // Get the res_name component from argv[0].
|
| + const CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| + std::string class_name = command_line->GetProgram().BaseName().value();
|
| + if (!class_name.empty())
|
| + class_name[0] = base::ToUpperASCII(class_name[0]);
|
| + return class_name;
|
| +}
|
| +
|
| #if !defined(OS_WIN)
|
| // static
|
| bool ShellIntegration::SetAsDefaultBrowserInteractive() {
|
|
|