| 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 #import "chrome/browser/autofill/autofill_dialog_controller_mac.h" | 5 #import "chrome/browser/autofill/autofill_dialog_controller_mac.h" |
| 6 #include "base/lazy_instance.h" | 6 #include "base/lazy_instance.h" |
| 7 #include "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
| 8 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
| 9 #import "chrome/browser/autofill/autofill_address_model_mac.h" | 9 #import "chrome/browser/autofill/autofill_address_model_mac.h" |
| 10 #import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h" | 10 #import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h" |
| 11 #import "chrome/browser/autofill/autofill_credit_card_model_mac.h" | 11 #import "chrome/browser/autofill/autofill_credit_card_model_mac.h" |
| 12 #import "chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h" | 12 #import "chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h" |
| 13 #import "chrome/browser/autofill/autofill-inl.h" | 13 #import "chrome/browser/autofill/autofill-inl.h" |
| 14 #import "chrome/browser/autofill/personal_data_manager.h" | 14 #import "chrome/browser/autofill/personal_data_manager.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #import "chrome/browser/ui/cocoa/window_size_autosaver.h" | 16 #import "chrome/browser/ui/cocoa/window_size_autosaver.h" |
| 17 #include "chrome/browser/prefs/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
| 18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
| 20 #include "chrome/browser/ui/browser_list.h" | 20 #include "chrome/browser/ui/browser_list.h" |
| 21 #include "chrome/common/notification_details.h" | 21 #include "chrome/common/notification_details.h" |
| 22 #include "chrome/common/notification_observer.h" | 22 #include "chrome/common/notification_observer.h" |
| 23 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
| 24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
| 25 #include "grit/app_resources.h" | 25 #include "grit/app_resources.h" |
| 26 #include "grit/theme_resources.h" | 26 #include "grit/theme_resources.h" |
| 27 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 28 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
| 29 #include "ui/gfx/image.h" |
| 29 | 30 |
| 30 namespace { | 31 namespace { |
| 31 | 32 |
| 32 // Type for singleton object that contains the instance of the visible | 33 // Type for singleton object that contains the instance of the visible |
| 33 // dialog. | 34 // dialog. |
| 34 typedef std::map<Profile*, AutoFillDialogController*> ProfileControllerMap; | 35 typedef std::map<Profile*, AutoFillDialogController*> ProfileControllerMap; |
| 35 | 36 |
| 36 static base::LazyInstance<ProfileControllerMap> g_profile_controller_map( | 37 static base::LazyInstance<ProfileControllerMap> g_profile_controller_map( |
| 37 base::LINKER_INITIALIZED); | 38 base::LINKER_INITIALIZED); |
| 38 | 39 |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 if (!image) { | 933 if (!image) { |
| 933 image = rb.GetNativeImageNamed(IDR_INPUT_GOOD); | 934 image = rb.GetNativeImageNamed(IDR_INPUT_GOOD); |
| 934 DCHECK(image); | 935 DCHECK(image); |
| 935 return image; | 936 return image; |
| 936 } | 937 } |
| 937 | 938 |
| 938 return nil; | 939 return nil; |
| 939 } | 940 } |
| 940 | 941 |
| 941 @end | 942 @end |
| OLD | NEW |