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

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

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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 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/browser/password_generator.h" 16 #include "components/autofill/core/browser/password_generator.h"
17 #include "components/autofill/core/common/autofill_messages.h" 17 #include "components/autofill/core/common/autofill_messages.h"
18 #include "components/user_prefs/pref_registry_syncable.h" 18 #include "components/user_prefs/pref_registry_syncable.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/render_view_host.h" 20 #include "content/public/browser/render_view_host.h"
21 #include "content/public/browser/web_contents.h" 21 #include "content/public/browser/web_contents.h"
22 #include "content/public/common/password_form.h" 22 #include "content/public/common/password_form.h"
23 #include "ipc/ipc_message_macros.h" 23 #include "ipc/ipc_message_macros.h"
24 #include "ui/gfx/rect.h" 24 #include "ui/gfx/rect.h"
25 25
26 DEFINE_WEB_CONTENTS_USER_DATA_KEY(PasswordGenerationManager); 26 DEFINE_WEB_CONTENTS_USER_DATA_KEY(PasswordGenerationManager);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 #if defined(OS_ANDROID) 158 #if defined(OS_ANDROID)
159 NOTIMPLEMENTED(); 159 NOTIMPLEMENTED();
160 #else 160 #else
161 password_generator_.reset(new autofill::PasswordGenerator(max_length)); 161 password_generator_.reset(new autofill::PasswordGenerator(max_length));
162 Browser* browser = chrome::FindBrowserWithWebContents(web_contents()); 162 Browser* browser = chrome::FindBrowserWithWebContents(web_contents());
163 browser->window()->ShowPasswordGenerationBubble(bounds, 163 browser->window()->ShowPasswordGenerationBubble(bounds,
164 form, 164 form,
165 password_generator_.get()); 165 password_generator_.get());
166 #endif // #if defined(OS_ANDROID) 166 #endif // #if defined(OS_ANDROID)
167 } 167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698