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

Side by Side Diff: chrome/browser/chromeos/file_manager/app_installer.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 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/chromeos/file_manager/app_installer.h" 5 #include "chrome/browser/chromeos/file_manager/app_installer.h"
6 6
7 #include "chrome/common/extensions/webstore_install_result.h" 7 #include "chrome/common/extensions/webstore_install_result.h"
8 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 10
11 namespace file_manager { 11 namespace file_manager {
12 12
13 namespace { 13 namespace {
14 const char kWebContentsDestroyedError[] = "WebContents is destroyed."; 14 const char kWebContentsDestroyedError[] = "WebContents is destroyed.";
15 } // namespace 15 } // namespace
16 16
17 class AppInstaller::WebContentsObserver : public content::WebContentsObserver { 17 class AppInstaller::WebContentsObserver : public content::WebContentsObserver {
18 public: 18 public:
19 WebContentsObserver(content::WebContents* web_contents, AppInstaller* parent) 19 WebContentsObserver(content::WebContents* web_contents, AppInstaller* parent)
20 : content::WebContentsObserver(web_contents), 20 : content::WebContentsObserver(web_contents),
21 parent_(parent) { 21 parent_(parent) {
22 } 22 }
23 23
24 protected: 24 protected:
25 // content::WebContentsObserver implementation. 25 // content::WebContentsObserver implementation.
26 virtual void WebContentsDestroyed() OVERRIDE { 26 virtual void WebContentsDestroyed() override {
27 parent_->OnWebContentsDestroyed(web_contents()); 27 parent_->OnWebContentsDestroyed(web_contents());
28 } 28 }
29 29
30 private: 30 private:
31 AppInstaller* parent_; 31 AppInstaller* parent_;
32 32
33 DISALLOW_IMPLICIT_CONSTRUCTORS(WebContentsObserver); 33 DISALLOW_IMPLICIT_CONSTRUCTORS(WebContentsObserver);
34 }; 34 };
35 35
36 AppInstaller::AppInstaller(content::WebContents* web_contents, 36 AppInstaller::AppInstaller(content::WebContents* web_contents,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 void AppInstaller::OnWebContentsDestroyed( 103 void AppInstaller::OnWebContentsDestroyed(
104 content::WebContents* web_contents) { 104 content::WebContents* web_contents) {
105 callback_.Run(false, 105 callback_.Run(false,
106 kWebContentsDestroyedError, 106 kWebContentsDestroyedError,
107 extensions::webstore_install::OTHER_ERROR); 107 extensions::webstore_install::OTHER_ERROR);
108 AbortInstall(); 108 AbortInstall();
109 } 109 }
110 110
111 } // namespace file_manager 111 } // namespace file_manager
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/file_manager/app_installer.h ('k') | chrome/browser/chromeos/file_manager/drive_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698