OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/sync/sync_setup_wizard.h" | 5 #include "chrome/browser/sync/sync_setup_wizard.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | |
8 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
9 #include "base/singleton.h" | 8 #include "base/singleton.h" |
10 #include "chrome/browser/browser_thread.h" | 9 #include "chrome/browser/browser_thread.h" |
11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 10 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
12 #include "chrome/browser/google/google_util.h" | 11 #include "chrome/browser/google/google_util.h" |
13 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/sync/profile_sync_service.h" | 14 #include "chrome/browser/sync/profile_sync_service.h" |
16 #include "chrome/browser/sync/sync_setup_flow.h" | 15 #include "chrome/browser/sync/sync_setup_flow.h" |
17 #include "chrome/common/jstemplate_builder.h" | 16 #include "chrome/common/jstemplate_builder.h" |
18 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
19 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
20 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
21 #include "grit/app_resources.h" | 20 #include "grit/app_resources.h" |
22 #include "grit/browser_resources.h" | 21 #include "grit/browser_resources.h" |
23 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
24 #include "grit/locale_settings.h" | 23 #include "grit/locale_settings.h" |
| 24 #include "ui/base/resource/resource_bundle.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Utility method to keep dictionary population code streamlined. | 28 // Utility method to keep dictionary population code streamlined. |
29 void AddString(DictionaryValue* dictionary, | 29 void AddString(DictionaryValue* dictionary, |
30 const std::string& key, | 30 const std::string& key, |
31 int resource_id) { | 31 int resource_id) { |
32 dictionary->SetString(key, l10n_util::GetStringUTF16(resource_id)); | 32 dictionary->SetString(key, l10n_util::GetStringUTF16(resource_id)); |
33 } | 33 } |
34 | 34 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 result = GAIA_SUCCESS; | 321 result = GAIA_SUCCESS; |
322 } else if (start_state == ENTER_PASSPHRASE || | 322 } else if (start_state == ENTER_PASSPHRASE || |
323 start_state == CONFIGURE || | 323 start_state == CONFIGURE || |
324 start_state == PASSPHRASE_MIGRATION) { | 324 start_state == PASSPHRASE_MIGRATION) { |
325 result = DONE; | 325 result = DONE; |
326 } | 326 } |
327 DCHECK_NE(FATAL_ERROR, result) << | 327 DCHECK_NE(FATAL_ERROR, result) << |
328 "Invalid start state for discrete run: " << start_state; | 328 "Invalid start state for discrete run: " << start_state; |
329 return result; | 329 return result; |
330 } | 330 } |
OLD | NEW |