Commit 60f06907 authored by abodenha@chromium.org's avatar abodenha@chromium.org

Fix failure to disable cloud print connector.

Fix issue where a crash in the cloud print connector on shutdown will prevent the enable pref change from being persisted.
Moves the write of the pref to earlier in the shutdown process so that if a crash occurs the pref will still be recorded.

BUG=106919
TEST=Verify 106919


Review URL: http://codereview.chromium.org/8879040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113852 0039d316-1c4b-4281-b951-d872f2087c98
parent a12b2b99
......@@ -171,10 +171,10 @@ void CloudPrintProxy::DisableForUser() {
DCHECK(CalledOnValidThread());
user_email_.clear();
enabled_ = false;
Shutdown();
if (client_) {
client_->OnCloudPrintProxyDisabled(true);
}
Shutdown();
}
void CloudPrintProxy::GetProxyInfo(cloud_print::CloudPrintProxyInfo* info) {
......
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