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

Side by Side Diff: chrome/browser/ui/webui/options2/password_manager_handler2.cc

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/webui/options2/password_manager_handler2.h" 5 #include "chrome/browser/ui/webui/options2/password_manager_handler2.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/google/google_util.h" 11 #include "chrome/browser/google/google_util.h"
12 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
17 #include "content/browser/webui/web_ui.h"
17 #include "content/public/browser/notification_details.h" 18 #include "content/public/browser/notification_details.h"
18 #include "content/public/browser/notification_source.h" 19 #include "content/public/browser/notification_source.h"
19 #include "grit/chromium_strings.h" 20 #include "grit/chromium_strings.h"
20 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
21 #include "net/base/net_util.h" 22 #include "net/base/net_util.h"
22 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
23 #include "webkit/forms/password_form.h" 24 #include "webkit/forms/password_form.h"
24 25
25 namespace options2 { 26 namespace options2 {
26 27
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 const std::vector<webkit::forms::PasswordForm*>& result) { 285 const std::vector<webkit::forms::PasswordForm*>& result) {
285 DCHECK_EQ(pending_login_query_, handle); 286 DCHECK_EQ(pending_login_query_, handle);
286 pending_login_query_ = 0; 287 pending_login_query_ = 0;
287 page_->password_exception_list_.reset(); 288 page_->password_exception_list_.reset();
288 page_->password_exception_list_.insert(page_->password_exception_list_.end(), 289 page_->password_exception_list_.insert(page_->password_exception_list_.end(),
289 result.begin(), result.end()); 290 result.begin(), result.end());
290 page_->SetPasswordExceptionList(); 291 page_->SetPasswordExceptionList();
291 } 292 }
292 293
293 } // namespace options2 294 } // namespace options2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698