Index: ui/views/views_delegate.cc |
diff --git a/ui/views/views_delegate.cc b/ui/views/views_delegate.cc |
index de9ccbbfd92d9b11d9b8e93e2a8915e44b173540..4c1ae4f6b90ae5d70eba822e96959723e7ae3a04 100644 |
--- a/ui/views/views_delegate.cc |
+++ b/ui/views/views_delegate.cc |
@@ -4,6 +4,7 @@ |
#include "ui/views/views_delegate.h" |
+#include "base/command_line.h" |
#include "ui/views/views_touch_selection_controller_factory.h" |
namespace views { |
@@ -85,6 +86,11 @@ ui::ContextFactory* ViewsDelegate::GetContextFactory() { |
return NULL; |
} |
+std::string ViewsDelegate::GetApplicationName() { |
+ base::FilePath program = base::CommandLine::ForCurrentProcess()->GetProgram(); |
+ return program.BaseName().AsUTF8Unsafe(); |
+} |
+ |
#if defined(OS_WIN) |
int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, |
const base::Closure& callback) { |