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

Side by Side Diff: chrome/common/extensions/api/file_browser_handlers/file_browser_handler.cc

Issue 653773004: Standardize usage of virtual/override/final in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/common/extensions/api/file_browser_handlers/file_browser_handle r.h" 5 #include "chrome/common/extensions/api/file_browser_handlers/file_browser_handle r.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 28 matching lines...) Expand all
39 if (access_str == kCreateAccessString) 39 if (access_str == kCreateAccessString)
40 return kCreatePermission; 40 return kCreatePermission;
41 return kInvalidPermission; 41 return kInvalidPermission;
42 } 42 }
43 43
44 // Stored on the Extension. 44 // Stored on the Extension.
45 struct FileBrowserHandlerInfo : public extensions::Extension::ManifestData { 45 struct FileBrowserHandlerInfo : public extensions::Extension::ManifestData {
46 FileBrowserHandler::List file_browser_handlers; 46 FileBrowserHandler::List file_browser_handlers;
47 47
48 FileBrowserHandlerInfo(); 48 FileBrowserHandlerInfo();
49 virtual ~FileBrowserHandlerInfo(); 49 ~FileBrowserHandlerInfo() override;
50 }; 50 };
51 51
52 FileBrowserHandlerInfo::FileBrowserHandlerInfo() { 52 FileBrowserHandlerInfo::FileBrowserHandlerInfo() {
53 } 53 }
54 54
55 FileBrowserHandlerInfo::~FileBrowserHandlerInfo() { 55 FileBrowserHandlerInfo::~FileBrowserHandlerInfo() {
56 } 56 }
57 57
58 } // namespace 58 } // namespace
59 59
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return false; // Failed to parse file browser actions definition. 282 return false; // Failed to parse file browser actions definition.
283 } 283 }
284 284
285 extension->SetManifestData(keys::kFileBrowserHandlers, info.release()); 285 extension->SetManifestData(keys::kFileBrowserHandlers, info.release());
286 return true; 286 return true;
287 } 287 }
288 288
289 const std::vector<std::string> FileBrowserHandlerParser::Keys() const { 289 const std::vector<std::string> FileBrowserHandlerParser::Keys() const {
290 return SingleKey(keys::kFileBrowserHandlers); 290 return SingleKey(keys::kFileBrowserHandlers);
291 } 291 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698