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

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

Issue 10398051: [Sync] Replace TalkMediator*/MediatorThread* with PushClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix test Created 8 years, 7 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
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_consts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/sync_setup_handler.cc b/chrome/browser/ui/webui/sync_setup_handler.cc
index 66e5aafd242c46aa7a82a44f1e12cc28c5c54db5..63fba5644b2780e29b1ed0f4d90047e4ebd4e0ed 100644
--- a/chrome/browser/ui/webui/sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/sync_setup_handler.cc
@@ -4,8 +4,8 @@
#include "chrome/browser/ui/webui/sync_setup_handler.h"
-#include "base/bind.h"
#include "base/basictypes.h"
+#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
@@ -28,15 +28,14 @@
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
#include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/url_constants.h"
#include "chrome/common/net/gaia/gaia_constants.h"
+#include "chrome/common/url_constants.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_view_host_delegate.h"
#include "content/public/browser/web_contents.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
-#include "sync/protocol/service_constants.h"
#include "ui/base/l10n/l10n_util.h"
using l10n_util::GetStringFUTF16;
@@ -92,6 +91,8 @@ static const size_t kNumDataTypes = arraysize(kDataTypes);
COMPILE_ASSERT(arraysize(kDataTypeNames) == arraysize(kDataTypes),
kDataTypes_does_not_match_kDataTypeNames);
+static const char kDefaultSigninDomain[] = "gmail.com";
+
bool GetAuthData(const std::string& json,
std::string* username,
std::string* password,
@@ -176,7 +177,7 @@ bool GetPassphrase(const std::string& json, std::string* passphrase) {
string16 NormalizeUserName(const string16& user) {
if (user.find_first_of(ASCIIToUTF16("@")) != string16::npos)
return user;
- return user + ASCIIToUTF16("@") + ASCIIToUTF16(DEFAULT_SIGNIN_DOMAIN);
+ return user + ASCIIToUTF16("@") + ASCIIToUTF16(kDefaultSigninDomain);
}
bool AreUserNamesEqual(const string16& user1, const string16& user2) {
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_consts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698