summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/script_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/renderer/script_context.cc')
-rw-r--r--extensions/renderer/script_context.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
index b4eeefd..60a558b 100644
--- a/extensions/renderer/script_context.cc
+++ b/extensions/renderer/script_context.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_split.h"
+#include "base/strings/string_util.h"
#include "base/values.h"
#include "content/public/common/url_constants.h"
#include "content/public/renderer/render_view.h"
@@ -58,8 +59,8 @@ void ScriptContext::Invalidate() {
v8_context_.reset();
}
-std::string ScriptContext::GetExtensionID() const {
- return extension_.get() ? extension_->id() : std::string();
+const std::string& ScriptContext::GetExtensionID() const {
+ return extension_.get() ? extension_->id() : base::EmptyString();
}
content::RenderView* ScriptContext::GetRenderView() const {