Commit 4254ae37 authored by haitaol@chromium.org's avatar haitaol@chromium.org

It's decided that it's unnecessary to ask user to confirm profile deletion if...

It's decided that it's unnecessary to ask user to confirm profile deletion if he chooses to remove other
data while disconnecting sync because the confirmation dialog can get lost sometimes and user's data is left behind.

BUG=395441
NOTRY=true

Review URL: https://codereview.chromium.org/426123003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287802 0039d316-1c4b-4281-b951-d872f2087c98
parent 23b7264d
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "chrome/browser/ui/browser_window.h" #include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/singleton_tabs.h" #include "chrome/browser/ui/singleton_tabs.h"
#include "chrome/browser/ui/sync/signin_histogram.h" #include "chrome/browser/ui/sync/signin_histogram.h"
#include "chrome/browser/ui/webui/options/options_handlers_helper.h"
#include "chrome/browser/ui/webui/signin/login_ui_service.h" #include "chrome/browser/ui/webui/signin/login_ui_service.h"
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
#include "chrome/common/chrome_switches.h" #include "chrome/common/chrome_switches.h"
...@@ -817,8 +818,8 @@ void SyncSetupHandler::HandleStopSyncing(const base::ListValue* args) { ...@@ -817,8 +818,8 @@ void SyncSetupHandler::HandleStopSyncing(const base::ListValue* args) {
bool delete_profile = false; bool delete_profile = false;
if (args->GetBoolean(0, &delete_profile) && delete_profile) { if (args->GetBoolean(0, &delete_profile) && delete_profile) {
web_ui()->CallJavascriptFunction( // Do as BrowserOptionsHandler::DeleteProfile().
"BrowserOptions.deleteCurrentProfile"); options::helper::DeleteProfileAtPath(GetProfile()->GetPath(), web_ui());
} }
} }
#endif #endif
......
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