mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make CEF compliant with Google/Chromium style (issue #473).
- Add a new check_style tool based on Google's cpplint that can be used to verify compliance of pending changes and specific files/directories. - Update existing CEF source code to be compliant with the style requirements. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@463 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -2,9 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "browser_file_system.h"
|
||||
#include "browser_file_writer.h"
|
||||
#include "cef_thread.h"
|
||||
#include "libcef/browser_file_system.h"
|
||||
#include "libcef/browser_file_writer.h"
|
||||
#include "libcef/cef_thread.h"
|
||||
|
||||
#include "base/file_path.h"
|
||||
#include "base/memory/scoped_callback_factory.h"
|
||||
@ -150,7 +150,7 @@ void BrowserFileSystem::CreateContext() {
|
||||
|
||||
void BrowserFileSystem::OpenFileSystem(
|
||||
WebFrame* frame, WebFileSystem::Type web_filesystem_type,
|
||||
long long, bool create,
|
||||
long long, bool create, // NOLINT(runtime/int)
|
||||
WebFileSystemCallbacks* callbacks) {
|
||||
if (!frame || !file_system_context_.get()) {
|
||||
// The FileSystem temp directory was not initialized successfully.
|
||||
@ -159,13 +159,13 @@ void BrowserFileSystem::OpenFileSystem(
|
||||
}
|
||||
|
||||
fileapi::FileSystemType type;
|
||||
if (web_filesystem_type == WebFileSystem::TypeTemporary)
|
||||
if (web_filesystem_type == WebFileSystem::TypeTemporary) {
|
||||
type = fileapi::kFileSystemTypeTemporary;
|
||||
else if (web_filesystem_type == WebFileSystem::TypePersistent)
|
||||
} else if (web_filesystem_type == WebFileSystem::TypePersistent) {
|
||||
type = fileapi::kFileSystemTypePersistent;
|
||||
else if (web_filesystem_type == WebFileSystem::TypeExternal)
|
||||
} else if (web_filesystem_type == WebFileSystem::TypeExternal) {
|
||||
type = fileapi::kFileSystemTypeExternal;
|
||||
else {
|
||||
} else {
|
||||
// Unknown type filesystem is requested.
|
||||
callbacks->didFail(WebKit::WebFileErrorSecurity);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user