Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4106)

Unified Diff: chrome/browser/ui/webui/options/sync_setup_handler.cc

Issue 7193031: Move UI specific implementation from ProfileSyncService to SyncSetupFlowHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor ShowSyncSetup Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/options/sync_setup_handler.cc b/chrome/browser/ui/webui/options/sync_setup_handler.cc
index d4c0352233c9e8df78f7865dc2c17a72c2f75be7..3bb20f82054b96c493f2eb838ae39005cf64b1d9 100644
--- a/chrome/browser/ui/webui/options/sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/options/sync_setup_handler.cc
@@ -11,6 +11,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/sync_setup_flow.h"
+#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/url_constants.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "grit/chromium_strings.h"
@@ -332,6 +333,11 @@ void SyncSetupHandler::Focus() {
static_cast<RenderViewHostDelegate*>(web_ui_->tab_contents())->Activate();
}
+void SyncSetupHandler::ShowSyncSetup(Profile* profile) {
Andrew T Wilson (Slow) 2011/07/11 18:12:51 When you get rid of the Profile* parameter, you ca
+ BrowserList::GetLastActiveWithProfile(profile)->ShowOptionsTab(
+ chrome::kSyncSetupSubPage);
Andrew T Wilson (Slow) 2011/07/11 18:12:51 csilv: Do we need to do anything else here to avoi
qsr (NOT THE RIGHT qsr) 2011/07/12 07:01:37 Right now, I'm pretty sure I didn't change the beh
+}
+
void SyncSetupHandler::OnDidClosePage(const ListValue* args) {
if (flow_) {
flow_->OnDialogClosed(std::string());

Powered by Google App Engine
This is Rietveld 408576698