OLD | NEW |
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 call_data_.back().arg2 = arg2.DeepCopy(); | 187 call_data_.back().arg2 = arg2.DeepCopy(); |
188 } | 188 } |
189 | 189 |
190 virtual content::WebContents* GetWebContents() const OVERRIDE { | 190 virtual content::WebContents* GetWebContents() const OVERRIDE { |
191 return NULL; | 191 return NULL; |
192 } | 192 } |
193 virtual content::WebUIController* GetController() const OVERRIDE { | 193 virtual content::WebUIController* GetController() const OVERRIDE { |
194 return NULL; | 194 return NULL; |
195 } | 195 } |
196 virtual void SetController(content::WebUIController* controller) OVERRIDE {} | 196 virtual void SetController(content::WebUIController* controller) OVERRIDE {} |
197 virtual ui::ScaleFactor GetDeviceScaleFactor() const OVERRIDE { | 197 virtual float GetDeviceScaleFactor() const OVERRIDE { |
198 return ui::SCALE_FACTOR_100P; | 198 return 1.0f; |
199 } | 199 } |
200 virtual const base::string16& GetOverriddenTitle() const OVERRIDE { | 200 virtual const base::string16& GetOverriddenTitle() const OVERRIDE { |
201 return temp_string_; | 201 return temp_string_; |
202 } | 202 } |
203 virtual void OverrideTitle(const base::string16& title) OVERRIDE {} | 203 virtual void OverrideTitle(const base::string16& title) OVERRIDE {} |
204 virtual content::PageTransition GetLinkTransitionType() const OVERRIDE { | 204 virtual content::PageTransition GetLinkTransitionType() const OVERRIDE { |
205 return content::PAGE_TRANSITION_LINK; | 205 return content::PAGE_TRANSITION_LINK; |
206 } | 206 } |
207 virtual void SetLinkTransitionType(content::PageTransition type) OVERRIDE {} | 207 virtual void SetLinkTransitionType(content::PageTransition type) OVERRIDE {} |
208 virtual int GetBindings() const OVERRIDE { | 208 virtual int GetBindings() const OVERRIDE { |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 | 1053 |
1054 // This should display the sync setup dialog (not login). | 1054 // This should display the sync setup dialog (not login). |
1055 handler_->OpenSyncSetup(); | 1055 handler_->OpenSyncSetup(); |
1056 | 1056 |
1057 ExpectConfig(); | 1057 ExpectConfig(); |
1058 const TestWebUI::CallData& data = web_ui_.call_data()[0]; | 1058 const TestWebUI::CallData& data = web_ui_.call_data()[0]; |
1059 base::DictionaryValue* dictionary; | 1059 base::DictionaryValue* dictionary; |
1060 ASSERT_TRUE(data.arg2->GetAsDictionary(&dictionary)); | 1060 ASSERT_TRUE(data.arg2->GetAsDictionary(&dictionary)); |
1061 CheckBool(dictionary, "encryptAllData", true); | 1061 CheckBool(dictionary, "encryptAllData", true); |
1062 } | 1062 } |
OLD | NEW |