Skip to content

Commit

Permalink
Cpplint for apps/, extensions/
Browse files Browse the repository at this point in the history
BUG=

Review URL: https://codereview.chromium.org/247143004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265884 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
limasdf@gmail.com committed Apr 24, 2014
1 parent 08da9ad commit 2919a5e
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 40 deletions.
6 changes: 3 additions & 3 deletions apps/app_shim/app_shim_host_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_
#ifndef APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_
#define APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_

#include <string>
#include <vector>
Expand Down Expand Up @@ -82,4 +82,4 @@ class AppShimHost : public IPC::Listener,
bool initial_launch_finished_;
};

#endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MAC_H_
#endif // APPS_APP_SHIM_APP_SHIM_HOST_MAC_H_
6 changes: 3 additions & 3 deletions apps/app_shim/app_shim_host_manager_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_
#ifndef APPS_APP_SHIM_APP_SHIM_HOST_MANAGER_MAC_H_
#define APPS_APP_SHIM_APP_SHIM_HOST_MANAGER_MAC_H_

#include "apps/app_shim/extension_app_shim_handler_mac.h"
#include "base/memory/ref_counted.h"
Expand Down Expand Up @@ -65,4 +65,4 @@ class AppShimHostManager
DISALLOW_COPY_AND_ASSIGN(AppShimHostManager);
};

#endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_
#endif // APPS_APP_SHIM_APP_SHIM_HOST_MANAGER_MAC_H_
6 changes: 3 additions & 3 deletions apps/app_shim/extension_app_shim_handler_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_H_
#define APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_H_
#ifndef APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_
#define APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_

#include <map>
#include <string>
Expand Down Expand Up @@ -144,4 +144,4 @@ class ExtensionAppShimHandler : public AppShimHandler,

} // namespace apps

#endif // APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_H_
#endif // APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_
1 change: 0 additions & 1 deletion apps/app_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,6 @@ AppWindow::CreateParams AppWindow::LoadDefaults(CreateParams params)
&cached_bounds,
&cached_screen_bounds,
&cached_state)) {

// App window has cached screen bounds, make sure it fits on screen in
// case the screen resolution changed.
gfx::Screen* screen = gfx::Screen::GetNativeScreen();
Expand Down
6 changes: 3 additions & 3 deletions apps/app_window_contents.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_EXTENSIONS_APP_WINDOW_CONTENTS_H_
#define CHROME_BROWSER_EXTENSIONS_APP_WINDOW_CONTENTS_H_
#ifndef APPS_APP_WINDOW_CONTENTS_H_
#define APPS_APP_WINDOW_CONTENTS_H_

#include <vector>

Expand Down Expand Up @@ -77,4 +77,4 @@ class AppWindowContentsImpl

} // namespace apps

#endif // CHROME_BROWSER_EXTENSIONS_APP_WINDOW_CONTENTS_H_
#endif // APPS_APP_WINDOW_CONTENTS_H_
1 change: 0 additions & 1 deletion apps/app_window_geometry_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ bool AppWindowGeometryCache::GetGeometry(const std::string& extension_id,
gfx::Rect* bounds,
gfx::Rect* screen_bounds,
ui::WindowShowState* window_state) {

std::map<std::string, ExtensionData>::const_iterator extension_data_it =
cache_.find(extension_id);

Expand Down
2 changes: 1 addition & 1 deletion apps/app_window_geometry_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AppWindowGeometryCache : public KeyedService,
const gfx::Rect& bounds) = 0;

protected:
virtual ~Observer() {};
virtual ~Observer() {}
};

AppWindowGeometryCache(Profile* profile, extensions::ExtensionPrefs* prefs);
Expand Down
2 changes: 1 addition & 1 deletion apps/app_window_geometry_cache_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,4 @@ TEST_F(AppWindowGeometryCacheTest, MaxWindows) {
}
}

} // namespace extensions
} // namespace apps
2 changes: 1 addition & 1 deletion apps/app_window_registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,4 @@ content::BrowserContext* AppWindowRegistry::Factory::GetBrowserContextToUse(
context);
}

} // namespace extensions
} // namespace apps
2 changes: 1 addition & 1 deletion apps/app_window_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,6 @@ class AppWindowRegistry : public KeyedService {
base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_;
};

} // namespace extensions
} // namespace apps

#endif // APPS_APP_WINDOW_REGISTRY_H_
6 changes: 3 additions & 3 deletions apps/browser_context_keyed_service_factories.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef APPS_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_
#define APPS_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_
#ifndef APPS_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_
#define APPS_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_

namespace apps {

Expand All @@ -13,4 +13,4 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt();

} // namespace apps

#endif // APPS_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_
#endif // APPS_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_
2 changes: 1 addition & 1 deletion extensions/browser/admin_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ bool UserMayModifySettings(const Extension* extension, base::string16* error);
bool MustRemainEnabled(const Extension* extension, base::string16* error);

} // namespace
} // namespace
} // namespace extensions

#endif // EXTENSIONS_BROWSER_ADMIN_POLICY_H_
6 changes: 3 additions & 3 deletions extensions/browser/browser_context_keyed_service_factories.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EXTENSIONS_BROWSER_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_
#define EXTENSIONS_BROWSER_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_
#ifndef EXTENSIONS_BROWSER_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_
#define EXTENSIONS_BROWSER_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_

namespace extensions {

Expand All @@ -13,4 +13,4 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt();

} // namespace extensions

#endif // EXTENSIONS_BROWSER_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_
#endif // EXTENSIONS_BROWSER_BROWSER_CONTEXT_KEYED_SERVICE_FACTORIES_H_
1 change: 1 addition & 0 deletions extensions/browser/extension_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class ExtensionError {
// The number of times this error has occurred.
size_t occurrences_;

private:
DISALLOW_COPY_AND_ASSIGN(ExtensionError);
};

Expand Down
19 changes: 10 additions & 9 deletions extensions/browser/extension_error_test_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ scoped_ptr<ExtensionError> CreateNewRuntimeError(
content::kStandardSchemeSeparator +
extension_id);

return scoped_ptr<ExtensionError>(new RuntimeError(
extension_id,
from_incognito,
source,
base::UTF8ToUTF16(message),
stack_trace,
GURL::EmptyGURL(), // no context url
logging::LOG_INFO,
0, 0 /* Render [View|Process] ID */ ));
return scoped_ptr<ExtensionError>(
new RuntimeError(extension_id,
from_incognito,
source,
base::UTF8ToUTF16(message),
stack_trace,
GURL::EmptyGURL(), // no context url
logging::LOG_INFO,
0,
0 /* Render [View|Process] ID */));
}

scoped_ptr<ExtensionError> CreateNewRuntimeError(
Expand Down
6 changes: 3 additions & 3 deletions extensions/browser/extension_message_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EXTENSIONS_BROWSER_EXTENSION_RENDER_MESSAGE_FILTER_H_
#define EXTENSIONS_BROWSER_EXTENSION_RENDER_MESSAGE_FILTER_H_
#ifndef EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_
#define EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_

#include <string>

Expand Down Expand Up @@ -88,4 +88,4 @@ class ExtensionMessageFilter : public content::BrowserMessageFilter {

} // namespace extensions

#endif // EXTENSIONS_BROWSER_EXTENSION_RENDER_MESSAGE_FILTER_H_
#endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_
1 change: 0 additions & 1 deletion extensions/browser/extension_prefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,6 @@ int64 ExtensionPrefs::GetNextStorageThreshold(

void ExtensionPrefs::SetNextStorageThreshold(const std::string& extension_id,
int64 next_threshold) {

ScopedExtensionPrefUpdate update(prefs_, extension_id);
SaveInt64(update.Get(), kPrefNextStorageThreshold, next_threshold);
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/browser/extension_prefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ class ExtensionPrefs : public ExtensionScopedPrefs, public KeyedService {
virtual T* Create();

private:
DISALLOW_COPY_AND_ASSIGN(ScopedUpdate);

DictionaryPrefUpdate update_;
const std::string extension_id_;
const std::string key_;

DISALLOW_COPY_AND_ASSIGN(ScopedUpdate);
};
typedef ScopedUpdate<base::DictionaryValue, base::Value::TYPE_DICTIONARY>
ScopedDictionaryUpdate;
Expand Down

0 comments on commit 2919a5e

Please sign in to comment.