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

Unified Diff: chrome/browser/ui/webui/welcome_handler_android.h

Issue 619263002: Remove chrome://welcome page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename the test again 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/welcome_handler_android.h
diff --git a/chrome/browser/ui/webui/welcome_handler_android.h b/chrome/browser/ui/webui/welcome_handler_android.h
deleted file mode 100644
index e2894302fcf7ce75d7500c218a03892341a171c8..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/welcome_handler_android.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_WELCOME_HANDLER_ANDROID_H_
-#define CHROME_BROWSER_UI_WEBUI_WELCOME_HANDLER_ANDROID_H_
-
-#include "base/scoped_observer.h"
-#include "chrome/browser/sync/profile_sync_service.h"
-#include "chrome/browser/sync/profile_sync_service_observer.h"
-#include "content/public/browser/web_ui_message_handler.h"
-
-namespace base {
-class ListValue;
-}
-
-// Handler class for chrome://welcome page.
-class WelcomeHandler : public content::WebUIMessageHandler,
- public ProfileSyncServiceObserver {
- public:
- WelcomeHandler();
- virtual ~WelcomeHandler();
-
- // content::WebUIMessageHandler implementation.
- virtual void RegisterMessages() OVERRIDE;
-
- // Callback for the "updateSyncFooterVisibility" message. This makes the sync
- // footer in the page visible if sync is enabled.
- void HandleUpdateSyncFooterVisibility(const base::ListValue* args);
-
- // Callback for the "showSyncSettings" message. This opens the sync settings
- // menu fragment.
- void HandleShowSyncSettings(const base::ListValue* args);
-
- // Callback for the "showTermsOfService" message. This opens the terms of
- // service popup.
- void HandleShowTermsOfService(const base::ListValue* args);
-
- // ProfileSyncServiceObserver implementation
- virtual void OnStateChanged() OVERRIDE;
-
- private:
- // Update the sync footer visibility. Set |forced| if you want to force to
- // send an update to the renderer regardless of whether we assume the state
- // is up to date or not.
- void UpdateSyncFooterVisibility(bool forced);
-
- // Cached pointer to the sync service for this profile.
- ProfileSyncService* sync_service_;
-
- ScopedObserver<ProfileSyncService, WelcomeHandler> observer_manager_;
-
- // Whether the sync footer is visible on the page.
- bool is_sync_footer_visible_;
-
- DISALLOW_COPY_AND_ASSIGN(WelcomeHandler);
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_WELCOME_HANDLER_ANDROID_H_
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/browser/ui/webui/welcome_handler_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698