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

Side by Side Diff: chrome/browser/ui/webui/sync_setup_handler_unittest.cc

Issue 10535134: Add WebUI::GetDeviceScale (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/ui/webui/sync_setup_handler.h" 5 #include "chrome/browser/ui/webui/sync_setup_handler.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 call_data_.back().arg2 = arg2.DeepCopy(); 248 call_data_.back().arg2 = arg2.DeepCopy();
249 } 249 }
250 250
251 virtual content::WebContents* GetWebContents() const OVERRIDE { 251 virtual content::WebContents* GetWebContents() const OVERRIDE {
252 return NULL; 252 return NULL;
253 } 253 }
254 virtual content::WebUIController* GetController() const OVERRIDE { 254 virtual content::WebUIController* GetController() const OVERRIDE {
255 return NULL; 255 return NULL;
256 } 256 }
257 virtual void SetController(content::WebUIController* controller) OVERRIDE {} 257 virtual void SetController(content::WebUIController* controller) OVERRIDE {}
258 virtual float GetDeviceScale() const OVERRIDE {
259 return 1.0f;
260 }
258 virtual bool ShouldHideFavicon() const OVERRIDE { 261 virtual bool ShouldHideFavicon() const OVERRIDE {
259 return false; 262 return false;
260 } 263 }
261 virtual void HideFavicon() OVERRIDE {} 264 virtual void HideFavicon() OVERRIDE {}
262 virtual bool ShouldFocusLocationBarByDefault() const OVERRIDE { 265 virtual bool ShouldFocusLocationBarByDefault() const OVERRIDE {
263 return false; 266 return false;
264 } 267 }
265 virtual void FocusLocationBarByDefault() OVERRIDE {} 268 virtual void FocusLocationBarByDefault() OVERRIDE {}
266 virtual bool ShouldHideURL() const OVERRIDE { 269 virtual bool ShouldHideURL() const OVERRIDE {
267 return false; 270 return false;
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 CheckShowSyncSetupArgs( 1078 CheckShowSyncSetupArgs(
1076 dictionary, err, false, GoogleServiceAuthError::NONE, "", true, ""); 1079 dictionary, err, false, GoogleServiceAuthError::NONE, "", true, "");
1077 handler_->CloseSyncSetup(); 1080 handler_->CloseSyncSetup();
1078 EXPECT_EQ(NULL, 1081 EXPECT_EQ(NULL,
1079 LoginUIServiceFactory::GetForProfile( 1082 LoginUIServiceFactory::GetForProfile(
1080 profile_.get())->current_login_ui()); 1083 profile_.get())->current_login_ui());
1081 } 1084 }
1082 1085
1083 INSTANTIATE_TEST_CASE_P(SyncSetupHandlerTest, SyncSetupHandlerTest, 1086 INSTANTIATE_TEST_CASE_P(SyncSetupHandlerTest, SyncSetupHandlerTest,
1084 Values(true, false)); 1087 Values(true, false));
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc ('k') | content/browser/webui/web_ui_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698