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

Unified Diff: chrome/browser/ui/webui/sync_setup_handler_unittest.cc

Issue 1421893005: Settings Rewrite: Fork SyncSetupHandler for MD-Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/sync_setup_handler_unittest.cc
diff --git a/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc b/chrome/browser/ui/webui/sync_setup_handler_unittest.cc
similarity index 99%
rename from chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
rename to chrome/browser/ui/webui/sync_setup_handler_unittest.cc
index 233d473d59d94097c5ca65ddb479caca04d0d7cd..6db00db5a009542ccd2d86fea8ee44703205dd20 100644
--- a/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
+++ b/chrome/browser/ui/webui/sync_setup_handler_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/webui/options/sync_setup_handler.h"
+#include "chrome/browser/ui/webui/sync_setup_handler.h"
#include <vector>
@@ -144,16 +144,13 @@ void CheckConfigDataTypeArguments(const base::DictionaryValue* dictionary,
types.Has(syncer::WIFI_CREDENTIALS));
}
-
} // namespace
class TestingSyncSetupHandler : public SyncSetupHandler {
public:
TestingSyncSetupHandler(content::WebUI* web_ui, Profile* profile)
- : profile_(profile) {
- set_web_ui(web_ui);
- }
- ~TestingSyncSetupHandler() override { set_web_ui(NULL); }
Dan Beam 2015/10/29 01:47:20 do we know why this was necessary?
tommycli 2015/10/29 17:34:14 Yeah, this is necessary because of: https://code.g
+ : SyncSetupHandler(web_ui), profile_(profile) {}
+ ~TestingSyncSetupHandler() override { set_web_ui(nullptr); }
void FocusUI() override {}
@@ -992,4 +989,3 @@ TEST_F(SyncSetupHandlerTest, TurnOnEncryptAllDisallowed) {
// passphrase.
ExpectDone();
}
-

Powered by Google App Engine
This is Rietveld 408576698