 Chromium Code Reviews
 Chromium Code Reviews Issue 2769383002:
  Firefox  overlay is seen opened even if Import Overlay is Cancelled.
    
  
    Issue 2769383002:
  Firefox  overlay is seen opened even if Import Overlay is Cancelled. 
  | OLD | NEW | 
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> | 
| 6 | 6 | 
| 7 #include "base/bind.h" | 7 #include "base/bind.h" | 
| 8 #include "base/callback.h" | 8 #include "base/callback.h" | 
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" | 
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" | 
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 IDS_IMPORTER_LOCK_TEXT)]; | 29 IDS_IMPORTER_LOCK_TEXT)]; | 
| 30 [lock_alert setMessageText:l10n_util::GetNSStringWithFixup( | 30 [lock_alert setMessageText:l10n_util::GetNSStringWithFixup( | 
| 31 IDS_IMPORTER_LOCK_TITLE)]; | 31 IDS_IMPORTER_LOCK_TITLE)]; | 
| 32 | 32 | 
| 33 base::ThreadTaskRunnerHandle::Get()->PostTask( | 33 base::ThreadTaskRunnerHandle::Get()->PostTask( | 
| 34 FROM_HERE, | 34 FROM_HERE, | 
| 35 base::Bind(callback, [lock_alert runModal] == NSAlertFirstButtonReturn)); | 35 base::Bind(callback, [lock_alert runModal] == NSAlertFirstButtonReturn)); | 
| 36 content::RecordAction(UserMetricsAction("ImportLockDialogCocoa_Shown")); | 36 content::RecordAction(UserMetricsAction("ImportLockDialogCocoa_Shown")); | 
| 37 } | 37 } | 
| 38 | 38 | 
| 39 void HideImportLockDialog() { | |
| 40 // This code path is not needed for MAC ,plz refer Issue:2769383002 for | |
| 41 // Details. | |
| 
Ilya Sherman
2017/03/30 22:14:32
nit: I'd rephrase this a bit to something like "Th
 
nikhil.sahni
2017/03/31 15:21:25
Done.
 | |
| 42 } | |
| 43 | |
| 39 } // namespace importer | 44 } // namespace importer | 
| OLD | NEW |