| Index: extensions/renderer/script_context.cc
|
| diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
|
| index b4eeefd007e3e998ff7716083a31b3613a62596c..60a558b6c37fd21e6d9576f1e6f9f57476195d0c 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 {
|
|
|