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

Unified Diff: apps/shell/shell_extensions_browser_client.cc

Issue 99053008: Rename apps::AppShell* to apps::Shell* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/shell/shell_extensions_browser_client.h ('k') | apps/shell/shell_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/shell_extensions_browser_client.cc
diff --git a/apps/shell/app_shell_extensions_browser_client.cc b/apps/shell/shell_extensions_browser_client.cc
similarity index 64%
rename from apps/shell/app_shell_extensions_browser_client.cc
rename to apps/shell/shell_extensions_browser_client.cc
index aee9ac62d7d1ec8e81e761a8ab1870c3a3491f4b..c192406f9cd398578c571bac0fee62c876e536df 100644
--- a/apps/shell/app_shell_extensions_browser_client.cc
+++ b/apps/shell/shell_extensions_browser_client.cc
@@ -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 "apps/shell/app_shell_extensions_browser_client.h"
+#include "apps/shell/shell_extensions_browser_client.h"
-#include "apps/shell/app_shell_app_sorting.h"
+#include "apps/shell/shell_app_sorting.h"
#include "base/prefs/pref_service.h"
#include "base/prefs/pref_service_factory.h"
#include "base/prefs/testing_pref_store.h"
@@ -25,7 +25,7 @@ void RegisterPrefs(user_prefs::PrefRegistrySyncable* registry) {
namespace apps {
-AppShellExtensionsBrowserClient::AppShellExtensionsBrowserClient(
+ShellExtensionsBrowserClient::ShellExtensionsBrowserClient(
BrowserContext* context)
: browser_context_(context) {
// Set up the preferences service.
@@ -43,65 +43,64 @@ AppShellExtensionsBrowserClient::AppShellExtensionsBrowserClient(
user_prefs::UserPrefs::Set(browser_context_, prefs_.get());
}
-AppShellExtensionsBrowserClient::~AppShellExtensionsBrowserClient() {}
+ShellExtensionsBrowserClient::~ShellExtensionsBrowserClient() {}
-bool AppShellExtensionsBrowserClient::IsShuttingDown() {
+bool ShellExtensionsBrowserClient::IsShuttingDown() {
return false;
}
-bool AppShellExtensionsBrowserClient::AreExtensionsDisabled(
+bool ShellExtensionsBrowserClient::AreExtensionsDisabled(
const CommandLine& command_line,
BrowserContext* context) {
return false;
}
-bool AppShellExtensionsBrowserClient::IsValidContext(BrowserContext* context) {
+bool ShellExtensionsBrowserClient::IsValidContext(BrowserContext* context) {
return context == browser_context_;
}
-bool AppShellExtensionsBrowserClient::IsSameContext(BrowserContext* first,
- BrowserContext* second) {
+bool ShellExtensionsBrowserClient::IsSameContext(BrowserContext* first,
+ BrowserContext* second) {
return first == second;
}
-bool AppShellExtensionsBrowserClient::HasOffTheRecordContext(
+bool ShellExtensionsBrowserClient::HasOffTheRecordContext(
BrowserContext* context) {
return false;
}
-BrowserContext* AppShellExtensionsBrowserClient::GetOffTheRecordContext(
+BrowserContext* ShellExtensionsBrowserClient::GetOffTheRecordContext(
BrowserContext* context) {
// app_shell only supports a single context.
return NULL;
}
-BrowserContext* AppShellExtensionsBrowserClient::GetOriginalContext(
+BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext(
BrowserContext* context) {
return context;
}
-PrefService* AppShellExtensionsBrowserClient::GetPrefServiceForContext(
+PrefService* ShellExtensionsBrowserClient::GetPrefServiceForContext(
BrowserContext* context) {
return prefs_.get();
}
-bool AppShellExtensionsBrowserClient::DeferLoadingBackgroundHosts(
+bool ShellExtensionsBrowserClient::DeferLoadingBackgroundHosts(
BrowserContext* context) const {
return false;
}
-bool AppShellExtensionsBrowserClient::DidVersionUpdate(
- BrowserContext* context) {
+bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) {
// TODO(jamescook): We might want to tell extensions when app_shell updates.
return false;
}
scoped_ptr<extensions::AppSorting>
-AppShellExtensionsBrowserClient::CreateAppSorting() {
- return scoped_ptr<extensions::AppSorting>(new AppShellAppSorting).Pass();
+ShellExtensionsBrowserClient::CreateAppSorting() {
+ return scoped_ptr<extensions::AppSorting>(new ShellAppSorting).Pass();
}
-bool AppShellExtensionsBrowserClient::IsRunningInForcedAppMode() {
+bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() {
return false;
}
« no previous file with comments | « apps/shell/shell_extensions_browser_client.h ('k') | apps/shell/shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698