Code:    ~SessionRestoreImpl() {
     STLDeleteElements(&windows_);
 
    CHECK(profiles_getting_restored);
    CHECK(profiles_getting_restored->find(profile_) !=
          profiles_getting_restored->end());
    profiles_getting_restored->erase(profile_);
    if (profiles_getting_restored->empty()) {
      delete profiles_getting_restored;
      profiles_getting_restored = NULL;
     }
     g_browser_process->ReleaseModule();
   }

Vulnerability Type: DoS Overflow 
CWE ID: CWE-119
Summary: Google Chrome before 19.0.1084.46 does not properly draw hairlines, which allows remote attackers to cause a denial of service (out-of-bounds read) via unspecified vectors.
Commit Message: Lands http://codereview.chromium.org/9316065/ for Marja. I reviewed
this, so I'm using TBR to land it.

Don't crash if multiple SessionRestoreImpl:s refer to the same
Profile.

It shouldn't ever happen but it seems to happen anyway.

BUG=111238
TEST=NONE
TBR=sky@chromium.org
R=marja@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120648 0039d316-1c4b-4281-b951-d872f2087c98