summaryrefslogtreecommitdiffstats
path: root/extensions/common/host_id.cc
diff options
context:
space:
mode:
authorhanxi <hanxi@chromium.org>2015-03-05 13:25:53 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-05 21:26:40 +0000
commit0237e7bb40c9ce7b194564c8c7815521b17a30b1 (patch)
treee84fb5f60e7e132b1a947589dcd9015670445464 /extensions/common/host_id.cc
parent9b31e3cd889844345e0a6801e21f1fe0f79c53e9 (diff)
downloadchromium_src-0237e7bb40c9ce7b194564c8c7815521b17a30b1.zip
chromium_src-0237e7bb40c9ce7b194564c8c7815521b17a30b1.tar.gz
chromium_src-0237e7bb40c9ce7b194564c8c7815521b17a30b1.tar.bz2
Fix a bug in UserScriptLoader.
1. Fix a misuse of a released pointer in UserScriptLoader; 2. Add initilaztions for the variables that will be picked in UserScript. BUG=461052 Review URL: https://codereview.chromium.org/982113002 Cr-Commit-Position: refs/heads/master@{#319329}
Diffstat (limited to 'extensions/common/host_id.cc')
-rw-r--r--extensions/common/host_id.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/common/host_id.cc b/extensions/common/host_id.cc
index 121e8e4..e7d474f 100644
--- a/extensions/common/host_id.cc
+++ b/extensions/common/host_id.cc
@@ -4,7 +4,8 @@
#include "extensions/common/host_id.h"
-HostID::HostID() {
+HostID::HostID()
+ : type_(HostType::EXTENSIONS) {
}
HostID::HostID(HostType type, const std::string& id)