diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-03 10:11:50 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-03 10:11:50 +0000 |
commit | 061a5ea886987c122fdc7dfcba8e905e3032337b (patch) | |
tree | 41fe79701ec9b6d532c0a90503dcdf9971473763 /chrome/browser | |
parent | 605b31678393ea58df5752d7abdb4dd6366bd59c (diff) | |
download | chromium_src-061a5ea886987c122fdc7dfcba8e905e3032337b.zip chromium_src-061a5ea886987c122fdc7dfcba8e905e3032337b.tar.gz chromium_src-061a5ea886987c122fdc7dfcba8e905e3032337b.tar.bz2 |
[Sync] Remove need for WideToUTF8 conversion for SyncBackendHost
Add includes for files that didn't include utf_string_conversions.h but
pulled in the functions from sync_backend_host.h.
BUG=
TEST=
Review URL: http://codereview.chromium.org/7549029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
12 files changed, 14 insertions, 5 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index b1e6924..fa73da3 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -12,6 +12,7 @@ #include "base/message_loop.h" #include "base/string_number_conversions.h" #include "base/sys_string_conversions.h" +#include "base/utf_string_conversions.h" #include "chrome/app/chrome_command_ids.h" #include "chrome/browser/background/background_application_list_model.h" #include "chrome/browser/browser_process.h" diff --git a/chrome/browser/automation/testing_automation_provider_chromeos.cc b/chrome/browser/automation/testing_automation_provider_chromeos.cc index ba9a5e8..bb44051 100644 --- a/chrome/browser/automation/testing_automation_provider_chromeos.cc +++ b/chrome/browser/automation/testing_automation_provider_chromeos.cc @@ -7,6 +7,7 @@ #include "base/i18n/time_formatting.h" #include "base/stringprintf.h" #include "base/time.h" +#include "base/utf_string_conversions.h" #include "chrome/browser/automation/automation_provider_json.h" #include "chrome/browser/automation/automation_provider_observers.h" #include "chrome/browser/browser_process.h" diff --git a/chrome/browser/browser_signin.cc b/chrome/browser/browser_signin.cc index 2882bb5..6e73037 100644 --- a/chrome/browser/browser_signin.cc +++ b/chrome/browser/browser_signin.cc @@ -12,6 +12,7 @@ #include "base/memory/singleton.h" #include "base/message_loop.h" #include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "base/values.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/profiles/profile.h" diff --git a/chrome/browser/extensions/extension_webstore_private_api.cc b/chrome/browser/extensions/extension_webstore_private_api.cc index b0a6445..8276e81 100644 --- a/chrome/browser/extensions/extension_webstore_private_api.cc +++ b/chrome/browser/extensions/extension_webstore_private_api.cc @@ -9,6 +9,7 @@ #include "base/scoped_temp_dir.h" #include "base/string_util.h" +#include "base/utf_string_conversions.h" #include "base/values.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/extensions/crx_installer.h" diff --git a/chrome/browser/sync/glue/generic_change_processor.cc b/chrome/browser/sync/glue/generic_change_processor.cc index d24d477..4d7e154 100644 --- a/chrome/browser/sync/glue/generic_change_processor.cc +++ b/chrome/browser/sync/glue/generic_change_processor.cc @@ -5,6 +5,7 @@ #include "chrome/browser/sync/glue/generic_change_processor.h" #include "base/tracked.h" +#include "base/utf_string_conversions.h" #include "chrome/browser/sync/api/syncable_service.h" #include "chrome/browser/sync/api/sync_change.h" #include "chrome/browser/sync/api/sync_error.h" diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h index dbdead6..55d25cf 100644 --- a/chrome/browser/sync/glue/sync_backend_host.h +++ b/chrome/browser/sync/glue/sync_backend_host.h @@ -19,7 +19,6 @@ #include "base/synchronization/lock.h" #include "base/threading/thread.h" #include "base/timer.h" -#include "base/utf_string_conversions.h" #include "chrome/browser/sync/engine/syncapi.h" #include "chrome/browser/sync/engine/configure_reason.h" #include "chrome/browser/sync/engine/model_safe_worker.h" @@ -389,12 +388,12 @@ class SyncBackendHost : public browser_sync::ModelSafeWorkerRegistrar { // last known user (since it will fail in test mode) and does some extra // setup to nudge the syncapi into a usable state. void DoInitializeForTest( - const std::wstring& test_user, + const std::string& test_user, const scoped_refptr<net::URLRequestContextGetter>& getter, bool delete_sync_data_folder) { // Construct dummy credentials for test. sync_api::SyncCredentials credentials; - credentials.email = WideToUTF8(test_user); + credentials.email = test_user; credentials.sync_token = "token"; DoInitialize(DoInitializeOptions(WeakHandle<JsEventHandler>(), GURL(), getter, credentials, diff --git a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc index 7baec3f..d7dfe13 100644 --- a/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc +++ b/chrome/browser/sync/profile_sync_service_typed_url_unittest.cc @@ -11,6 +11,7 @@ #include "base/threading/thread.h" #include "base/time.h" #include "base/tracked.h" +#include "base/utf_string_conversions.h" #include "chrome/browser/history/history_backend.h" #include "chrome/browser/history/history_notifications.h" #include "chrome/browser/history/history_types.h" diff --git a/chrome/browser/sync/sync_ui_util_unittest.cc b/chrome/browser/sync/sync_ui_util_unittest.cc index 9c9f900..d6a416c 100644 --- a/chrome/browser/sync/sync_ui_util_unittest.cc +++ b/chrome/browser/sync/sync_ui_util_unittest.cc @@ -1,8 +1,9 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/basictypes.h" +#include "base/utf_string_conversions.h" #include "chrome/browser/sync/sync_ui_util.h" #include "chrome/browser/sync/profile_sync_service_mock.h" #include "content/browser/browser_thread.h" diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc index 0beeac5..cf4af6f 100644 --- a/chrome/browser/sync/test_profile_sync_service.cc +++ b/chrome/browser/sync/test_profile_sync_service.cc @@ -86,7 +86,7 @@ sync_api::HttpPostProviderFactory* void SyncBackendHostForProfileSyncTest::InitCore( const Core::DoInitializeOptions& options) { - std::wstring user = L"testuser@gmail.com"; + std::string user = "testuser@gmail.com"; sync_loop()->PostTask( FROM_HERE, NewRunnableMethod(core_.get(), diff --git a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm index 24774d5..94e5cbd 100644 --- a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm +++ b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm @@ -5,6 +5,7 @@ #import <Cocoa/Cocoa.h> #include "base/i18n/rtl.h" +#include "base/utf_string_conversions.h" #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" #include "chrome/browser/ui/browser.h" diff --git a/chrome/browser/ui/webui/sync_setup_handler.cc b/chrome/browser/ui/webui/sync_setup_handler.cc index 8da58bb..f652481 100644 --- a/chrome/browser/ui/webui/sync_setup_handler.cc +++ b/chrome/browser/ui/webui/sync_setup_handler.cc @@ -6,6 +6,7 @@ #include "base/json/json_reader.h" #include "base/json/json_writer.h" +#include "base/utf_string_conversions.h" #include "base/values.h" #include "chrome/browser/google/google_util.h" #include "chrome/browser/profiles/profile.h" diff --git a/chrome/browser/web_resource/promo_resource_service.cc b/chrome/browser/web_resource/promo_resource_service.cc index 01aed7e..dd242f3 100644 --- a/chrome/browser/web_resource/promo_resource_service.cc +++ b/chrome/browser/web_resource/promo_resource_service.cc @@ -7,6 +7,7 @@ #include "base/string_number_conversions.h" #include "base/threading/thread_restrictions.h" #include "base/time.h" +#include "base/utf_string_conversions.h" #include "base/values.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/extensions/apps_promo.h" |