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

Side by Side Diff: chrome/browser/chromeos/drive/file_task_executor.cc

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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/chromeos/drive/file_task_executor.h" 5 #include "chrome/browser/chromeos/drive/file_task_executor.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/chromeos/drive/drive.pb.h" 10 #include "chrome/browser/chromeos/drive/drive.pb.h"
(...skipping 14 matching lines...) Expand all
25 25
26 namespace drive { 26 namespace drive {
27 27
28 namespace { 28 namespace {
29 29
30 class FileTaskExecutorDelegateImpl : public FileTaskExecutorDelegate { 30 class FileTaskExecutorDelegateImpl : public FileTaskExecutorDelegate {
31 public: 31 public:
32 explicit FileTaskExecutorDelegateImpl(Profile* profile) : profile_(profile) { 32 explicit FileTaskExecutorDelegateImpl(Profile* profile) : profile_(profile) {
33 } 33 }
34 34
35 virtual FileSystemInterface* GetFileSystem() OVERRIDE { 35 virtual FileSystemInterface* GetFileSystem() override {
36 return util::GetFileSystemByProfile(profile_); 36 return util::GetFileSystemByProfile(profile_);
37 } 37 }
38 38
39 virtual DriveServiceInterface* GetDriveService() OVERRIDE { 39 virtual DriveServiceInterface* GetDriveService() override {
40 return util::GetDriveServiceByProfile(profile_); 40 return util::GetDriveServiceByProfile(profile_);
41 } 41 }
42 42
43 virtual void OpenBrowserWindow(const GURL& open_link) OVERRIDE { 43 virtual void OpenBrowserWindow(const GURL& open_link) override {
44 chrome::ScopedTabbedBrowserDisplayer displayer( 44 chrome::ScopedTabbedBrowserDisplayer displayer(
45 profile_, chrome::HOST_DESKTOP_TYPE_ASH); 45 profile_, chrome::HOST_DESKTOP_TYPE_ASH);
46 chrome::AddSelectedTabWithURL(displayer.browser(), open_link, 46 chrome::AddSelectedTabWithURL(displayer.browser(), open_link,
47 ui::PAGE_TRANSITION_LINK); 47 ui::PAGE_TRANSITION_LINK);
48 // Since the ScopedTabbedBrowserDisplayer does not guarantee that the 48 // Since the ScopedTabbedBrowserDisplayer does not guarantee that the
49 // browser will be shown on the active desktop, we ensure the visibility. 49 // browser will be shown on the active desktop, we ensure the visibility.
50 multi_user_util::MoveWindowToCurrentDesktop( 50 multi_user_util::MoveWindowToCurrentDesktop(
51 displayer.browser()->window()->GetNativeWindow()); 51 displayer.browser()->window()->GetNativeWindow());
52 } 52 }
53 53
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void FileTaskExecutor::Done(bool success) { 155 void FileTaskExecutor::Done(bool success) {
156 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 156 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
157 if (!done_.is_null()) 157 if (!done_.is_null())
158 done_.Run(success 158 done_.Run(success
159 ? extensions::api::file_manager_private::TASK_RESULT_OPENED 159 ? extensions::api::file_manager_private::TASK_RESULT_OPENED
160 : extensions::api::file_manager_private::TASK_RESULT_FAILED); 160 : extensions::api::file_manager_private::TASK_RESULT_FAILED);
161 delete this; 161 delete this;
162 } 162 }
163 163
164 } // namespace drive 164 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698