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

Side by Side Diff: chrome/browser/password_manager/password_generation_manager.cc

Issue 108283005: Moved ipc-specific files from autofill/core to autofill/content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "Final" fix. Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/password_manager/password_generation_manager.h" 5 #include "chrome/browser/password_manager/password_generation_manager.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/password_manager/password_manager.h" 8 #include "chrome/browser/password_manager/password_manager.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
11 #include "chrome/browser/sync/profile_sync_service_factory.h" 11 #include "chrome/browser/sync/profile_sync_service_factory.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_finder.h" 13 #include "chrome/browser/ui/browser_finder.h"
14 #include "chrome/browser/ui/browser_window.h" 14 #include "chrome/browser/ui/browser_window.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "components/autofill/content/common/autofill_messages.h"
16 #include "components/autofill/core/browser/autofill_field.h" 17 #include "components/autofill/core/browser/autofill_field.h"
17 #include "components/autofill/core/browser/field_types.h" 18 #include "components/autofill/core/browser/field_types.h"
18 #include "components/autofill/core/browser/form_structure.h" 19 #include "components/autofill/core/browser/form_structure.h"
19 #include "components/autofill/core/browser/password_generator.h" 20 #include "components/autofill/core/browser/password_generator.h"
20 #include "components/autofill/core/common/autofill_messages.h"
21 #include "components/autofill/core/common/form_data.h" 21 #include "components/autofill/core/common/form_data.h"
22 #include "components/autofill/core/common/password_form.h" 22 #include "components/autofill/core/common/password_form.h"
23 #include "components/user_prefs/pref_registry_syncable.h" 23 #include "components/user_prefs/pref_registry_syncable.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "content/public/browser/render_view_host.h" 25 #include "content/public/browser/render_view_host.h"
26 #include "content/public/browser/web_contents.h" 26 #include "content/public/browser/web_contents.h"
27 #include "ipc/ipc_message_macros.h" 27 #include "ipc/ipc_message_macros.h"
28 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
29 29
30 DEFINE_WEB_CONTENTS_USER_DATA_KEY(PasswordGenerationManager); 30 DEFINE_WEB_CONTENTS_USER_DATA_KEY(PasswordGenerationManager);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #if defined(OS_ANDROID) 127 #if defined(OS_ANDROID)
128 NOTIMPLEMENTED(); 128 NOTIMPLEMENTED();
129 #else 129 #else
130 password_generator_.reset(new autofill::PasswordGenerator(max_length)); 130 password_generator_.reset(new autofill::PasswordGenerator(max_length));
131 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); 131 Browser* browser = chrome::FindBrowserWithWebContents(web_contents());
132 browser->window()->ShowPasswordGenerationBubble(bounds, 132 browser->window()->ShowPasswordGenerationBubble(bounds,
133 form, 133 form,
134 password_generator_.get()); 134 password_generator_.get());
135 #endif // #if defined(OS_ANDROID) 135 #endif // #if defined(OS_ANDROID)
136 } 136 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698