OLD | NEW |
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 #if defined(BROWSER_SYNC) | |
6 | |
7 #include "chrome/browser/sync/sync_setup_flow.h" | 5 #include "chrome/browser/sync/sync_setup_flow.h" |
8 | 6 |
9 #include "app/gfx/font.h" | 7 #include "app/gfx/font.h" |
10 #include "app/gfx/font_util.h" | 8 #include "app/gfx/font_util.h" |
11 #include "base/histogram.h" | 9 #include "base/histogram.h" |
12 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
13 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
14 #include "base/string_util.h" | 12 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
16 #include "base/values.h" | 14 #include "base/values.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 if (!b) | 291 if (!b) |
294 return NULL; | 292 return NULL; |
295 | 293 |
296 FlowHandler* handler = new FlowHandler(); | 294 FlowHandler* handler = new FlowHandler(); |
297 SyncSetupFlow* flow = new SyncSetupFlow(start, end, json_args, | 295 SyncSetupFlow* flow = new SyncSetupFlow(start, end, json_args, |
298 container, handler, service); | 296 container, handler, service); |
299 handler->set_flow(flow); | 297 handler->set_flow(flow); |
300 b->BrowserShowHtmlDialog(flow, NULL); | 298 b->BrowserShowHtmlDialog(flow, NULL); |
301 return flow; | 299 return flow; |
302 } | 300 } |
303 | |
304 #endif // defined(BROWSER_SYNC) | |
OLD | NEW |