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

Side by Side Diff: chrome/browser/sync/sync_setup_flow.cc

Issue 276072: The login dialog was being opened with the main browser window as a parent in... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifdef CHROME_PERSONALIZATION 5 #ifdef CHROME_PERSONALIZATION
6 6
7 #include "chrome/browser/sync/sync_setup_flow.h" 7 #include "chrome/browser/sync/sync_setup_flow.h"
8 8
9 #include "app/gfx/font.h" 9 #include "app/gfx/font.h"
10 #include "app/gfx/font_util.h" 10 #include "app/gfx/font_util.h"
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 JSONWriter::Write(&args, false, &json_args); 290 JSONWriter::Write(&args, false, &json_args);
291 291
292 Browser* b = BrowserList::GetLastActive(); 292 Browser* b = BrowserList::GetLastActive();
293 if (!b) 293 if (!b)
294 return NULL; 294 return NULL;
295 295
296 FlowHandler* handler = new FlowHandler(); 296 FlowHandler* handler = new FlowHandler();
297 SyncSetupFlow* flow = new SyncSetupFlow(start, end, json_args, 297 SyncSetupFlow* flow = new SyncSetupFlow(start, end, json_args,
298 container, handler, service); 298 container, handler, service);
299 handler->set_flow(flow); 299 handler->set_flow(flow);
300 b->BrowserShowHtmlDialog(flow, NULL); 300 b->BrowserShowHtmlDialog(flow, service->GetWizardParent());
301 return flow; 301 return flow;
302 } 302 }
303 303
304 #endif // CHROME_PERSONALIZATION 304 #endif // CHROME_PERSONALIZATION
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698