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

Side by Side Diff: chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.mm

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h" 5 #include "chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #import "base/mac/foundation_util.h" 12 #import "base/mac/foundation_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h"
14 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
15 #import "chrome/browser/chrome_browser_application_mac.h" 16 #import "chrome/browser/chrome_browser_application_mac.h"
16 #include "chrome/browser/ui/app_modal/chrome_javascript_native_dialog_factory.h" 17 #include "chrome/browser/ui/app_modal/chrome_javascript_native_dialog_factory.h"
17 #include "chrome/browser/ui/blocked_content/app_modal_dialog_helper.h" 18 #include "chrome/browser/ui/blocked_content/app_modal_dialog_helper.h"
18 #include "components/app_modal/javascript_app_modal_dialog.h" 19 #include "components/app_modal/javascript_app_modal_dialog.h"
19 #include "components/app_modal/javascript_dialog_manager.h" 20 #include "components/app_modal/javascript_dialog_manager.h"
20 #include "components/app_modal/javascript_native_dialog_factory.h" 21 #include "components/app_modal/javascript_native_dialog_factory.h"
21 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
22 #include "content/public/browser/web_contents_delegate.h" 23 #include "content/public/browser/web_contents_delegate.h"
23 #include "grit/components_strings.h" 24 #include "grit/components_strings.h"
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 dialog->web_contents()); 465 dialog->web_contents());
465 return d; 466 return d;
466 } 467 }
467 468
468 DISALLOW_COPY_AND_ASSIGN(ChromeJavaScriptNativeDialogCocoaFactory); 469 DISALLOW_COPY_AND_ASSIGN(ChromeJavaScriptNativeDialogCocoaFactory);
469 }; 470 };
470 471
471 } // namespace 472 } // namespace
472 473
473 void InstallChromeJavaScriptNativeDialogFactory() { 474 void InstallChromeJavaScriptNativeDialogFactory() {
474 app_modal::JavaScriptDialogManager::GetInstance()-> 475 app_modal::JavaScriptDialogManager::GetInstance()->SetNativeDialogFactory(
475 SetNativeDialogFactory( 476 base::WrapUnique(new ChromeJavaScriptNativeDialogCocoaFactory));
476 make_scoped_ptr(new ChromeJavaScriptNativeDialogCocoaFactory));
477 } 477 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/javascript_app_modal_dialog_cocoa.h ('k') | chrome/browser/ui/cocoa/keystone_infobar_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698