Commit 4c98e90e authored by mathp@google.com's avatar mathp@google.com

Change a Value pointer to a scoped_ptr to avoid memory leak. Fixes error

returned from memory bot.

Fix for https://chromiumcodereview.appspot.com/10555005

BUG=118280
TEST=Same test scenarios as in change 10555005.

Review URL: https://chromiumcodereview.appspot.com/10825059

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148841 0039d316-1c4b-4281-b951-d872f2087c98
parent 236bf85d
......@@ -268,9 +268,9 @@ bool OneClickSigninHelper::CanOffer(content::WebContents* web_contents,
const ListValue* rejected_emails = profile->GetPrefs()->GetList(
prefs::kReverseAutologinRejectedEmailList);
if (!rejected_emails->empty()) {
const Value* email_value = Value::CreateStringValue(email);
const scoped_ptr<Value> email_value(Value::CreateStringValue(email));
ListValue::const_iterator iter = rejected_emails->Find(
*email_value);
*email_value);
if (iter != rejected_emails->end())
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment