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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 147533005: [Password Generation] Update UI to match final mocks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replace_password_generation_ui
Patch Set: Merge Created 6 years, 10 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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #include "chrome/renderer/safe_browsing/malware_dom_details.h" 61 #include "chrome/renderer/safe_browsing/malware_dom_details.h"
62 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" 62 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
63 #include "chrome/renderer/searchbox/search_bouncer.h" 63 #include "chrome/renderer/searchbox/search_bouncer.h"
64 #include "chrome/renderer/searchbox/searchbox.h" 64 #include "chrome/renderer/searchbox/searchbox.h"
65 #include "chrome/renderer/searchbox/searchbox_extension.h" 65 #include "chrome/renderer/searchbox/searchbox_extension.h"
66 #include "chrome/renderer/tts_dispatcher.h" 66 #include "chrome/renderer/tts_dispatcher.h"
67 #include "chrome/renderer/worker_permission_client_proxy.h" 67 #include "chrome/renderer/worker_permission_client_proxy.h"
68 #include "components/autofill/content/renderer/autofill_agent.h" 68 #include "components/autofill/content/renderer/autofill_agent.h"
69 #include "components/autofill/content/renderer/password_autofill_agent.h" 69 #include "components/autofill/content/renderer/password_autofill_agent.h"
70 #include "components/autofill/content/renderer/password_generation_agent.h" 70 #include "components/autofill/content/renderer/password_generation_agent.h"
71 #include "components/autofill/core/common/password_generation_util.h"
72 #include "components/nacl/renderer/ppb_nacl_private_impl.h" 71 #include "components/nacl/renderer/ppb_nacl_private_impl.h"
73 #include "components/plugins/renderer/mobile_youtube_plugin.h" 72 #include "components/plugins/renderer/mobile_youtube_plugin.h"
74 #include "components/visitedlink/renderer/visitedlink_slave.h" 73 #include "components/visitedlink/renderer/visitedlink_slave.h"
75 #include "content/public/common/content_constants.h" 74 #include "content/public/common/content_constants.h"
76 #include "content/public/renderer/render_frame.h" 75 #include "content/public/renderer/render_frame.h"
77 #include "content/public/renderer/render_thread.h" 76 #include "content/public/renderer/render_thread.h"
78 #include "content/public/renderer/render_view.h" 77 #include "content/public/renderer/render_view.h"
79 #include "content/public/renderer/render_view_visitor.h" 78 #include "content/public/renderer/render_view_visitor.h"
80 #include "extensions/common/constants.h" 79 #include "extensions/common/constants.h"
81 #include "extensions/common/extension.h" 80 #include "extensions/common/extension.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 new printing::PrintWebViewHelper(render_view); 398 new printing::PrintWebViewHelper(render_view);
400 #endif 399 #endif
401 #if defined(ENABLE_SPELLCHECK) 400 #if defined(ENABLE_SPELLCHECK)
402 new SpellCheckProvider(render_view, spellcheck_.get()); 401 new SpellCheckProvider(render_view, spellcheck_.get());
403 #endif 402 #endif
404 new prerender::PrerendererClient(render_view); 403 new prerender::PrerendererClient(render_view);
405 #if defined(FULL_SAFE_BROWSING) 404 #if defined(FULL_SAFE_BROWSING)
406 safe_browsing::MalwareDOMDetails::Create(render_view); 405 safe_browsing::MalwareDOMDetails::Create(render_view);
407 #endif 406 #endif
408 407
408 PasswordGenerationAgent* password_generation_agent =
409 new PasswordGenerationAgent(render_view);
409 PasswordAutofillAgent* password_autofill_agent = 410 PasswordAutofillAgent* password_autofill_agent =
410 new PasswordAutofillAgent(render_view); 411 new PasswordAutofillAgent(render_view);
411 new AutofillAgent(render_view, password_autofill_agent); 412 new AutofillAgent(render_view,
413 password_autofill_agent,
414 password_generation_agent);
412 415
413 CommandLine* command_line = CommandLine::ForCurrentProcess(); 416 CommandLine* command_line = CommandLine::ForCurrentProcess();
414 if (autofill::password_generation::IsPasswordGenerationEnabled())
415 new PasswordGenerationAgent(render_view);
416 if (command_line->HasSwitch(switches::kInstantProcess)) 417 if (command_line->HasSwitch(switches::kInstantProcess))
417 new SearchBox(render_view); 418 new SearchBox(render_view);
418 419
419 new ChromeRenderViewObserver(render_view, chrome_observer_.get()); 420 new ChromeRenderViewObserver(render_view, chrome_observer_.get());
420 } 421 }
421 422
422 void ChromeContentRendererClient::SetNumberOfViews(int number_of_views) { 423 void ChromeContentRendererClient::SetNumberOfViews(int number_of_views) {
423 base::debug::SetCrashKeyValue(crash_keys::kNumberOfViews, 424 base::debug::SetCrashKeyValue(crash_keys::kNumberOfViews,
424 base::IntToString(number_of_views)); 425 base::IntToString(number_of_views));
425 } 426 }
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 CommandLine* command_line = CommandLine::ForCurrentProcess(); 1417 CommandLine* command_line = CommandLine::ForCurrentProcess();
1417 return !command_line->HasSwitch(extensions::switches::kExtensionProcess); 1418 return !command_line->HasSwitch(extensions::switches::kExtensionProcess);
1418 } 1419 }
1419 1420
1420 blink::WebWorkerPermissionClientProxy* 1421 blink::WebWorkerPermissionClientProxy*
1421 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( 1422 ChromeContentRendererClient::CreateWorkerPermissionClientProxy(
1422 content::RenderFrame* render_frame, 1423 content::RenderFrame* render_frame,
1423 blink::WebFrame* frame) { 1424 blink::WebFrame* frame) {
1424 return new WorkerPermissionClientProxy(render_frame, frame); 1425 return new WorkerPermissionClientProxy(render_frame, frame);
1425 } 1426 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698