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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_helper.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/sync/one_click_signin_helper.h" 5 #include "chrome/browser/ui/sync/one_click_signin_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 19 matching lines...) Expand all
30 #include "chrome/browser/ui/tab_contents/tab_contents.h" 30 #include "chrome/browser/ui/tab_contents/tab_contents.h"
31 #include "chrome/common/chrome_version_info.h" 31 #include "chrome/common/chrome_version_info.h"
32 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
33 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 #include "content/public/browser/page_navigator.h" 35 #include "content/public/browser/page_navigator.h"
36 #include "content/public/browser/web_contents.h" 36 #include "content/public/browser/web_contents.h"
37 #include "content/public/browser/web_contents_view.h" 37 #include "content/public/browser/web_contents_view.h"
38 #include "content/public/common/frame_navigate_params.h" 38 #include "content/public/common/frame_navigate_params.h"
39 #include "content/public/common/page_transition_types.h" 39 #include "content/public/common/page_transition_types.h"
40 #include "content/public/common/password_form.h"
40 #include "googleurl/src/gurl.h" 41 #include "googleurl/src/gurl.h"
41 #include "grit/chromium_strings.h" 42 #include "grit/chromium_strings.h"
42 #include "grit/generated_resources.h" 43 #include "grit/generated_resources.h"
43 #include "grit/theme_resources.h" 44 #include "grit/theme_resources.h"
44 #include "net/cookies/cookie_monster.h" 45 #include "net/cookies/cookie_monster.h"
45 #include "net/url_request/url_request.h" 46 #include "net/url_request/url_request.h"
46 #include "ui/base/l10n/l10n_util.h" 47 #include "ui/base/l10n/l10n_util.h"
47 #include "ui/base/resource/resource_bundle.h" 48 #include "ui/base/resource/resource_bundle.h"
48 #include "webkit/forms/password_form.h"
49 #include "webkit/forms/password_form_dom_manager.h"
50 49
51 DEFINE_WEB_CONTENTS_USER_DATA_KEY(OneClickSigninHelper) 50 DEFINE_WEB_CONTENTS_USER_DATA_KEY(OneClickSigninHelper)
52 51
53 namespace { 52 namespace {
54 53
55 // Set to true if this chrome instance is in the blue-button-on-white-bar 54 // Set to true if this chrome instance is in the blue-button-on-white-bar
56 // experimental group. 55 // experimental group.
57 bool use_blue_on_white = false; 56 bool use_blue_on_white = false;
58 57
59 // Start syncing with the given user information. 58 // Start syncing with the given user information.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 session_index_ = session_index; 417 session_index_ = session_index;
419 email_ = email; 418 email_ = email;
420 } 419 }
421 420
422 void OneClickSigninHelper::SavePassword(const std::string& password) { 421 void OneClickSigninHelper::SavePassword(const std::string& password) {
423 // TODO(rogerta): in the case of a 2-factor or captcha or some other type of 422 // TODO(rogerta): in the case of a 2-factor or captcha or some other type of
424 // challenge, its possible for the user to never complete the signin. 423 // challenge, its possible for the user to never complete the signin.
425 // Should have a way to detect this and clear the password member. 424 // Should have a way to detect this and clear the password member.
426 password_ = password; 425 password_ = password;
427 } 426 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/views/autofill/autofill_external_delegate_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698