Commit 280f9705 authored by pkasting@chromium.org's avatar pkasting@chromium.org

Fix unsafe attempt to blindly access owner() in GoogleURLTracker::Close().

This was introduced by r135054, which moved some code that derefed owner() up above the check to see whether it was NULL.

BUG=128714
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10392189

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138187 0039d316-1c4b-4281-b951-d872f2087c98
parent dda4da3b
......@@ -103,7 +103,7 @@ void GoogleURLTrackerInfoBarDelegate::Show() {
}
void GoogleURLTrackerInfoBarDelegate::Close(bool redo_search) {
if (redo_search) {
if (redo_search && owner()) {
// Re-do the user's search on the new domain.
url_canon::Replacements<char> replacements;
const std::string& host(new_google_url_.host());
......
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